| Miles Sound System SDK 7.2a |
The function AIL_create_wave_synthesizer creates a "virtual wave synthesizer" by associating an XMIDI driver with a digital audio driver and a library file containing digital audio samples assigned to various MIDI patches.
HWAVESYNTH AIL_create_wave_synthesizer( HDIGDRIVER dig, HMDIDRIVER mdi, void const * wave_lib, S32 polyphony ); |
A handle to the newly created virtual wave synthesizer, or NULL if insufficient memory was available.
Note that this function is now obsolete. Applications should migrate to the DLS functions as soon as possible.
The wave library file created by WAVELIB contains a collection of digital audio samples, together with information assigning each sample an XMIDI patch bank number and a MIDI Program Change or rhythm-channel key number. The entire wave library file must be resident in memory (and VMM page-locked) during playback of sequences which make use of digital audio triggers. Refer to the current version of the example wave library list file WAVEDEMO.TXT to learn about the parameters which may be associated with wave samples.
Only one wave synthesizer instance may be associated with each XMIDI or digital audio driver. Example files that use this function: MIDIECHO.C, XDIGPLAY.C
Group:
XMIDI Services
Related Sections:
WAVELIB - Wave Synthesizer Librarian
Related Functions:
AIL_destroy_wave_synthesizer
Related Basic Types:
HDIGDRIVER, HMDIDRIVER, HWAVESYNTH, MILES_PREFERENCES, S32, void const *
For technical support, e-mail Miles3@radgametools.com
© Copyright 1991-2007 RAD Game Tools, Inc. All Rights Reserved.