Miles Sound System SDK 7.2a

AIL_sample_loop_block

The function AIL_sample_loop_block returns the beginning and ending loop offsets previously passed to AIL_set_sample_loop_block.

S32 AIL_sample_loop_block(
  HSAMPLE S,
  S32 *loop_start_offset,
  S32 *loop_end_offset
);

In Parameters

S
indicates the sample handle whose loop block offsets are to be returned.

Out Parameters

loop_start_offset
returns the offset in the source data where looping will begin, in bytes.
loop_end_offset
returns the offset in the source data at the end of the loop, in bytes.

Returns

The original loop count passed to AIL_set_sample_loop_count, if any. This is not the same as the sample's current loop count as returned by AIL_sample_loop_count.

Discussion

See AIL_set_sample_loop_block for more information.

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


Group: Digital Audio Services
Related Functions: AIL_sample_loop_count, AIL_set_sample_loop_block, AIL_set_sample_loop_count
Related Basic Types: HSAMPLE, S32

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