Miles Sound System SDK 7.2a

AIL_set_stream_loop_block

The function AIL_set_stream_loop_block arranges for a sub-block of a stream to be looped.

void AIL_set_stream_loop_block(
  HSTREAM stream,
  S32 loop_start_offset,
  S32 loop_end_offset
);

In Parameters

stream
indicates the stream to loop.
loop_start_offset
should be set to the offset of where looping should begin. If the stream is compressed, this offset is specified in "compressed" bytes.
loop_end_offset
should be set to the offset of where looping should end. If the stream is compressed, this offset is specified in "compressed" bytes.

Discussion

By default, looping a sound will loop the entire stream. This function allows you to loop a smaller sub-section of the stream.

If the stream data is compressed, then the offset passed to this function is in "compressed" bytes.

A value of zero for loop_start_offset indicates the beginning of the stream, and a value of -1 for loop_end_offset indicates the end of the stream, regardless of its actual length.


Group: Digital Audio Streaming Services
Related Functions: AIL_set_sample_loop_block, AIL_set_stream_loop_count
Related Basic Types: HSTREAM, S32, void
Related FAQs: I'm getting a glitch when I loop an MP3 or ADPCM file - what can I do?, What MP3 encoder should I use?

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