Miles Sound System SDK 7.2a

AIL_compress_ADPCM

The function AIL_compress_ADPCM compresses the digital sound described by the info structure into an IMA ADPCM wave file image.

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

In Parameters

info
describes the sound data to compress.

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 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.

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

Multichannel (> 2 channels) data is not supported.

The output wave file image is a standard IMA ADPCM 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_ASI, AIL_decompress_ADPCM, AIL_mem_free_lock
Related Basic Types: S32, U32, void *
Related Structures: AILSOUNDINFO
Related FAQs: I'm getting a glitch when I loop an MP3 or ADPCM file - what can I do?

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