Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/audio/api-ref/ado_mixer_element_io.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/audio/api-ref/ado_mixer_element_io.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/audio/api-ref/ado_mixer_element_io.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/audio/api-ref/ado_mixer_element_io.html on line 8
Create an input/output element
#include <audio_driver.h>
ado_mixer_delement_t *ado_mixer_element_io
( ado_mixer_t *mixer,
char *name,
int32_t type,
uint32_t attrib,
uint32_t number_of_voices,
snd_mixer_voice_t *voices );
- mixer
- A pointer to the ado_mixer_t structure that specifies the
mixer to create the element in.
This structure was created by
ado_mixer_create().
- name
- The name of the element.
Elements are referred to by name, so be careful; for some standard names, see
<asound.h>.
- type
- The type of element; one of:
- SND_MIXER_ETYPE_INPUT
- SND_MIXER_ETYPE_OUTPUT
- attrib
- Currently not used; set it to 0.
- number_of_voices
- The number of voices passing through the element.
- voices
- An array of snd_mixer_voice_t structures (see below).
Each entry describes one of the voices.
The ado_mixer_element_io() convenience function
automates the creation of an input/output element.
An input/output element is usually a physical connector on the sound card.
The snd_mixer_voice_t structure is defined as:
typedef struct
{
uint16_t voice:15, vindex:1;
uint8_t reserved[124];
} snd_mixer_voice_t;
The members include:
- voice
- One of:
- SND_MIXER_VOICE_UNUSED
- SND_MIXER_VOICE_MONO
- SND_MIXER_VOICE_LEFT
- SND_MIXER_VOICE_RIGHT
- SND_MIXER_VOICE_CENTER
- SND_MIXER_VOICE_REAR_LEFT
- SND_MIXER_VOICE_REAR_RIGHT
- SND_MIXER_VOICE_WOOFER
- vindex
- Not used; set this to 0.
A pointer to the newly allocated input/output element.
QNX Neutrino
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/audio/api-ref/ado_mixer_element_io.html on line 181
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/audio/api-ref/ado_mixer_element_io.html on line 181