FSOUND_SetLoopMode

##### [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 channel number/handle 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

FSOUND_ALL is supported. Passing this will set loop modes for all channels available.
Note, this does not work for hardware sounds played on hardware channels while they are playing. The function has to be called when the channel is paused.
Software based sounds do not have this limitation, and can have their loop mode changed during playback, but for compatibility it is best to use the pause method, else you may get different behaviour if hardware voices do not exist.
___________________
Supported on the following platforms : Win32, WinCE, Linux, Macintosh, XBox, PlayStation 2, GameCube

### See Also

FSOUND_Sample_GetMode

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.