Difference between revisions of "Unit Audio"
From Ultibo.org
Line 12: | Line 12: | ||
---- | ---- | ||
− | '' | + | |
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''Audio specific constants''' <code> AUDIO_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>AUDIO_NAME_PREFIX = 'Audio';</code> | ||
+ | | Name prefix for Audio Devices | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''Audio device types''' <code> AUDIO_TYPE_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>AUDIO_TYPE_NONE = 0;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''Audio device states''' <code> AUDIO_STATE_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>AUDIO_STATE_DISABLED = 0;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>AUDIO_STATE_ENABLED = 1;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''Audio device flags''' <code> AUDIO_FLAG_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>AUDIO_FLAG_NONE = $00000000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''Audio logging''' <code> AUDIO_LOG_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>AUDIO_LOG_LEVEL_DEBUG = LOG_LEVEL_DEBUG;</code> | ||
+ | | Audio debugging messages | ||
+ | |- | ||
+ | | <code>AUDIO_LOG_LEVEL_INFO = LOG_LEVEL_INFO;</code> | ||
+ | | Audio informational messages, such as a device being attached or detached | ||
+ | |- | ||
+ | | <code>AUDIO_LOG_LEVEL_ERROR = LOG_LEVEL_ERROR;</code> | ||
+ | | Audio error messages | ||
+ | |- | ||
+ | | <code>AUDIO_LOG_LEVEL_NONE = LOG_LEVEL_NONE;</code> | ||
+ | | No Audio messages | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
=== Type definitions === | === Type definitions === |
Revision as of 03:37, 19 June 2017
Return to Unit Reference
Description
Ultibo Audio interface unit
This unit provides both the Audio device interface and the generic USB audio device driver.
Constants
Audio specific constants
AUDIO_*
AUDIO_NAME_PREFIX = 'Audio';
|
Name prefix for Audio Devices |
Audio device types
AUDIO_TYPE_*
AUDIO_TYPE_NONE = 0;
|
Audio device states
AUDIO_STATE_*
AUDIO_STATE_DISABLED = 0;
|
|
AUDIO_STATE_ENABLED = 1;
|
Audio device flags
AUDIO_FLAG_*
AUDIO_FLAG_NONE = $00000000;
|
Audio logging
AUDIO_LOG_*
AUDIO_LOG_LEVEL_DEBUG = LOG_LEVEL_DEBUG;
|
Audio debugging messages |
AUDIO_LOG_LEVEL_INFO = LOG_LEVEL_INFO;
|
Audio informational messages, such as a device being attached or detached |
AUDIO_LOG_LEVEL_ERROR = LOG_LEVEL_ERROR;
|
Audio error messages |
AUDIO_LOG_LEVEL_NONE = LOG_LEVEL_NONE;
|
No Audio messages |
Type definitions
To be documented
Public variables
To be documented
Function declarations
To be documented
Return to Unit Reference