Previous Topic Index Next Topic
[API function]

FSOUND_SetCurrentPosition

Sets the current position of the sound in SAMPLES not bytes.

signed char F_API FSOUND_SetCurrentPosition(
int channel,
unsigned int pos
);

Parameters

channel The channel number/handle to have its offset or position set.
offset The offset in SAMPLES from the start of the sound for the position to be set to.

Return Value

On success, TRUE is returned.
On failure, FALSE is returned.

Remarks

FSOUND_ALL is supported. Passing this set the current position for the sound on ALL channels available.
On XBOX, GameCube and Playstation 2 hardware voices using compressed data (ie XADPCM, VAG or GCADPCM),
this value will not be sample accurate, but will be rounded to the nearest compression block size.
___________________
Supported on the following platforms : Win32, WinCE, Linux, Macintosh, XBox, PlayStation 2, GameCube

See Also

FSOUND_GetCurrentPosition , FSOUND_SetFrequency

This document copyright ©Firelight Technologies, Pty, Ltd, 1999-2002. All rights reserved.
Generated Thu Dec 15 17:31:33 2005 by SourceDoc v0.10, the automated source code documenter.