#include <revolution.h> #include <revolution/syn.h> void SYNInitSynth( SYNSYNTH *synth, u8 *wavetable, u8 *samples, u8 *zerobuffer, u32 priorityVoiceAlloc, u32 priorityNoteOn, u32 priorityNoteRelease );
synth |
pointer to user-allocated SYNSYNTH data structure |
wavetable |
pointer to contents of WT file in memory |
samples |
pointer to contents of PCM file in memory |
zerobuffer |
pointer to zero buffer in memory |
priorityVoiceAlloc |
priority for allocating AX voices to handle MIDI notes with events maximum: 31 minimum: 1 |
priorityNoteOn |
priority at which to set voices after successful allocation maximum: 31 minimum: 1 |
priorityNoteRelease |
priority at which to set voices after MIDI keyoff event maximum: 31 minimum: 1 |
None.
This function initializes a user-allocated instance of the synthesizer. Any number of synthesizer instances may be used. All running synthesizers will contend for the same pool of AX voices at runtime. This function must be called prior to any other API calls for the specific instance of the synthesizer.
03/01/2006 Initial version.