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_pcm_sw_mix.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_pcm_sw_mix.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_pcm_sw_mix.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_pcm_sw_mix.html on line 8
Provide a mechanism for an audio chip to support multiple simultaneous streams
#include <audio_driver.h>
int32_t ado_pcm_sw_mix ( ado_card_t *card,
ado_pcm_t *pcm,
ado_mixer_t *mixer );
- card
- The card argument that io-audio passed to your
Audio HW DLL's
ctrl_init()
function (see the Organization of a Driver chapter).
- pcm
- The PCM device the software mixer is built on.
This is a pointer to the ado_pcm_t structure created for the
PCM device when you called
ado_pcm_create().
- mixer
- The mixer in which to create the subchannel mixer groups.
The ado_pcm_sw_mix() function provides
a mechanism whereby an audio chip that supports only one hardware PCM
subchannel can support multiple simultaneous streams.
|
The number of streams supported is a function of the io-audio
architecture and your driver can't change it. |
This function uses CPU power to mix the
multiple streams together into one stream
that it then sends to the PCM device.
The software mixer is implemented by creating
a new PCM device attached to the card and
creating the mixer controls for the new subchannel
in the mixer specified.
The hardware subchannel is acquired only when the software mixer needs it,
so it's possible for applications to open the hardware device directly,
although this then prevents the software mixer
from accepting a stream because the real hardware
device is already in use.
Currently, software mixing is supported only on the playback channel of the
PCM device.
Zero on success, or -1 if an error occurred.
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_pcm_sw_mix.html on line 138
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_pcm_sw_mix.html on line 138