This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Load the specified standard mixer DLL
#include <audio_driver.h> int32_t ado_mixer_dll( ado_card_t *card, char *mixer_dll, uint32_t version, void *params, void *callbacks, ado_mixer_t **rmixer );
This argument is only the unique part of the mixer DLL's file name. For example, if the mixer DLL's filename is audio-mixer-ac97.so, you should specify mixer_dll as ac97. |
For example, if you're loading the Audio Codec 97 (AC97), set up a structure of type ado_mixer_dll_params_ac97_t and pass a pointer to it as the params argument to this function.
For example, if you're loading AC97, create a structure of type ado_mixer_dll_callbacks_ac97_t and pass a pointer to it as the callbacks argument to this function.
The ado_mixer_dll() function loads the specified standard mixer_dll and returns a pointer to a newly allocated mixer structure.
-1 if an error occurred (errno is set). Any other value indicates success.
QNX Neutrino
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | No |
ctrl_init() in the Organization of a Driver chapter, "Writing an analog mixer" in the Handling Analog Audio Data chapter, Supported Codecs appendix