Allocates the specified synthesizer driver
#include <libaudio.h> /* libaudio.h */
void alSynNew(ALSynth *drvr, ALSynConfig *c);
#include <n_libaudio.h> /* n_libaudio.h */
void n_alSynNew( ALSynConfig *c);
- Pointer to the synthesizer driver
- Pointer to the synthesizer configuration
alSynNew initializes the synthesizer driver structure pointed to by the drvr argument by using the arguments specified in the configuration structure. This function allocates memory from the heap for voices and driver objects. Always call this function before calling alAudioFrame. The configuration structure arguments include
- maximum number of virtual voices
- maximum number of physical voices
- maximum number of pending parameter updates
- maximum number of auxiliary effect busses (Currently it is ignored as one bus is supported)
- Pointer to procedure to use when initializing DMA callbacks.
- Pointer to audio system memory heap
- Number of samples per second for the synthesizer to generate
- type of effect to use. It can be AL_FX_NONE, AL_FX_SMALLROOM, AL_FX_BIGROOM, AL_FX_ECHO, AL_FX_CHORUS, AL_FX_FLANGE or AL_FX_CUSTOM.
- Pointer to an array of arguments to be used in the case of AL_FX_CUSTOM.
For details on n_audio library, see "Chapter 28: n_audio library" in the N64 Programming Manual.
1999/04/30 Changed Format