Miles Sound System SDK 7.2a

AIL_quick_load_mem

The function AIL_quick_load_mem loads a sound file that is already loaded into memory, returning a handle that can be used with the other quick API functions.

HAUDIO AIL_quick_load_mem(
  void const * mem,
  U32 size
);

In Parameters

mem
specifies the address of a loaded .WAV, .MP3, .OGG, .VOC, .MID or .XMI file.
size
specifies the length of the data in bytes.

Returns

A new audio handle if the function was successful, NULL otherwise.

Discussion

This function can read Microsoft .WAV files, XMA- or IMA ADPCM-compressed .WAV files, MPEG Layer-3 files, Ogg Vorbis files, Creative Labs .VOC files, normal MIDI files, or XMIDI files.

You must call AIL_quick_unload on all handles returned by this function. The memory image provided to this function must not be freed until AIL_quick_unload has been called.

Under DOS and MacOS 9, this function must not be invoked from an interrupt-based callback function.

Example files that use this function: MilesPly.C


Group: Quick Integration Services
Related Functions: AIL_quick_copy, AIL_quick_fss_load, AIL_quick_fss_load_and_play, AIL_quick_load, AIL_quick_load_and_play, AIL_quick_unload
Related Basic Types: HAUDIO, U32, void const *

For technical support, e-mail Miles3@radgametools.com
© Copyright 1991-2007 RAD Game Tools, Inc. All Rights Reserved.