Miles Sound System SDK 7.2a

AIL_sample_ms_position

The function AIL_sample_ms_position reports the current playback position and length of a sample in milliseconds.

void AIL_sample_ms_position(
  HSAMPLE S,
  S32 *total_milliseconds,
  S32 *current_milliseconds
);

In Parameters

S
indicates the sample whose playback position is to be reported.

Out Parameters

total_milliseconds
is the address to place the total length of the sample into. If you don't need the total length, pass a NULL for this parameter.
current_milliseconds
is the address to place the current millisecond position into. This value increases as the sample is played. If you don't need the current position, pass a NULL for this parameter.


Group: Digital Audio Services
Related Functions: AIL_sample_position, AIL_set_sample_ms_position, AIL_set_sample_position
Related Basic Types: HSAMPLE, S32, void
Related FAQs: This function returns a bunch of return data, but I only want one value - is there a simpler way to use it?

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