Miles Sound System SDK 7.2a

AIL_load_sample_buffer

The function AIL_load_sample_buffer sets the address and length for one of the low-level streaming buffers associated with a sample handle, enabling low-level streaming mode for that sample handle.

void AIL_load_sample_buffer(
  HSAMPLE S,
  S32 buff_num,
  void const * buffer,
  U32 len
);

In Parameters

S
indicates the sample handle whose buffer address and size is to be set.
buff_num
the index of the buffer to be filled. (Normally, this should be the token MSS_BUFFER_HEAD to place the data at the head of the buffer queue).
buffer
points to the (application-owned) data for the specified low-level streaming buffer.
len
specifies the size of the buffer in bytes.

Discussion

For a complete discussion of low-level streaming audio playback, including the use of the two API functions AIL_sample_buffer_available and AIL_load_sample_buffer, see the description of the AIL_sample_buffer_available function.

For higher-level streaming, read the "Digital Audio Streaming Services" chapter.

Example files that use this function: DBTEST.C


Group: Digital Audio Services
Related Functions: AIL_load_sample_buffer, AIL_minimum_sample_buffer_size, AIL_sample_buffer_available, AIL_sample_buffer_count, AIL_sample_buffer_info, AIL_set_sample_buffer_count, AIL_start_sample
Related Basic Types: HSAMPLE, S32, U32, void, void const *
Related FAQs: What's the best way to port my older Miles application to MSS 7?

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