Miles Sound System SDK 7.2a

AIL_decompress_ADPCM

The function AIL_decompress_ADPCM decompresses the IMA ADPCM digital sound described by the info structure into a standard PCM wave file image.

S32 AIL_decompress_ADPCM(
  AILSOUNDINFO const *info,
  void * *wav,
  U32 *wavesize
);

In Parameters

info
describes the ADCPM sound data to decompress.

Out Parameters

wav
should be the address of a " void* " pointer that will return with the pointer to the new wave file image. This parameter can be NULL if you don't need it.
wavesize
should be the address of an unsigned 32-bit integer that will return with the size of the new wave file image. This parameter can be NULL if you don't need it.

Returns

1, if the call was successful, or 0 if the call failed.

Discussion

You must free the pointer returned in wav with AIL_mem_free_lock.

Multichannel (> 2 channels) data is not supported.

You can use the AIL_WAV_info function to automatically fill the input info structure.

The output wave file image is a standard PCM wave file - you can write it directly to disk and any WAV file player will be able to play it.


Group: Utility Services
Related Functions: AIL_WAV_info, AIL_compress_ADPCM, AIL_decompress_ASI, AIL_mem_free_lock
Related Basic Types: S32, U32, void *
Related Structures: AILSOUNDINFO

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