Previous Topic Index Next Topic
[API function]

FSOUND_SetLoopMode

Sets the loop mode for a particular CHANNEL, not sample.

signed char F_API FSOUND_SetLoopMode(
int channel,
unsigned int loopmode
);

Parameters

channel The playing channel to have its loop mode set.
loopmode The loopmode to set. This can be FSOUND_LOOP_NORMAL, FSOUND_LOOP_BIDI or FSOUND_LOOP_OFF.

Return Value

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

Remarks

Note, this does not work for hardware sounds played on hardware channels, this will only on software mixed channels.
The loop mode will only change after it has been played. This is because the channel inherits the SAMPLE's loop mode upon playback.
FSOUND_LOOPMODE_BIDI does not have any effect with FSOUND_HW3D and FSOUND_HW2D sounds. In this case normal forward looping will take effect.
___________________
Supported on the following platforms : Win32, WinCE, Linux, Macintosh, XBox, PlayStation 2

See Also

FSOUND_Sample_GetMode

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.