Miles Sound System SDK 7.2a

AIL_size_processed_digital_audio

The function AIL_size_processed_digital_audio provides a way to determine how much output memory is necessary for a given set of input mix data.

S32 AIL_size_processed_digital_audio(
  U32 destrate,
  U32 destformat,
  S32 num_srcs,
  AILMIXINFO const * const *srcs
);

In Parameters

destrate
contains the output data rate that you will be mixing to.
destformat
contains the format that you want the destination buffer to be mixed to. See the MILES_DIGITAL_FORMAT flags for the possible output formats.
num_srcs
contains the number of buffers that you will be mixing. If you won't be mixing multiple samples, then just pass 1 for this parameter.
srcs
is a pointer to an array of "num_srcs" AILMIXINFO structures. The only part of the AILMIXINFO structure that you need to set is the Info structure inside the AILMIXINFO structure. The Info structure is of type AILSOUNDINFO, so you can use AIL_WAV_info to set the appropriate fields. See the example in AIL_process_digital_audio for details.

Returns

The number of bytes that will be necessary to completely perform the mix.

Discussion

You can use the AIL_WAV_info function to automatically fill the input src->Info structures.

Multichannel (> 2 channels) data is not supported.

This function can directly accept IMA ADPCM compressed data, but not MPEG Layer 3 or other ASI-compressed data.


Group: Utility Services
Related Functions: AIL_WAV_info, AIL_process_digital_audio
Related Basic Types: MILES_DIGITAL_FORMAT, S32, U32
Related Structures: AILMIXINFO, AILSOUNDINFO

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