Previous Topic Index Next Topic
[API function]

FSOUND_Stream_GetPosition

Returns the current FILE position of the stream of the stream in BYTES.

unsigned int F_API FSOUND_Stream_GetPosition(
FSOUND_STREAM *stream
);

Parameters

stream Pointer to the stream to have its position returned.

Return Value

On success, the current stream's position in BYTES is returned.
On failure, 0 is returned.

Remarks

Position functions for streams work in bytes not samples.
Position information is also based on the current file position, not the actual playing
position, so if the stream is only updated every 100ms, then the position will only be
updated every 100ms.
-----
WMA/ASF/Internet streaming support for this function is only emulated by calculating the fraction of the filesize based on the time and the current time so it is not 100accurate.
-----
This function is not supported for URL based streams over the internet.
___________________
Supported on the following platforms : Win32, WinCE, Linux, Macintosh, XBox, PlayStation 2

See Also

FSOUND_Stream_GetLength , FSOUND_Stream_SetPosition , FSOUND_Stream_SetTime

This document copyright ©Firelight Technologies, Pty, Ltd, 1999-2002. All rights reserved.
Generated Fri Dec 20 16:31:09 2002 by SourceDoc v0.10, the automated source code documenter.