##### [API function]

## FSOUND_DSP_ClearMixBuffer

Clears the mixbuffer, especially handy if you are doing a large file operation which
halts the system.
You might try and stop all the sounds, but if you do your file operation straight after
this, it will not have a chance to flush the mixbuffer normally, so this function is called.
It stops the effect of stuttering looping sound while your file operation happens.

void F_API FSOUND_DSP_ClearMixBuffer(
);

### Return Value

### Remarks

The best way to do it is like this. Turn off the sfx and music DSP units, clear the mix buffer,
then when the operation that halts the machine is done, just re-enable the sfx and music DSP units.
Disabling these units stops the timer trying to get 1 or 2 more mixes in during the file operation,
which will cause more stuttering.
ie.
FSOUND_DSP_SetActive(FSOUND_DSP_GetSFXUnit(), FALSE);
FSOUND_DSP_SetActive(FSOUND_DSP_GetMusicUnit(), FALSE);
FSOUND_DSP_ClearMixBuffer();
//
// maching halting operation here
//
FSOUND_DSP_SetActive(FSOUND_DSP_GetSFXUnit(), TRUE);
FSOUND_DSP_SetActive(FSOUND_DSP_GetMusicUnit(), TRUE);
___________________
Supported on the following platforms : Win32, WinCE, Linux, Macintosh, XBox, PlayStation 2, GameCube

### See Also

FSOUND_DSP_ClearMixBuffer , FSOUND_DSP_GetMusicUnit , FSOUND_DSP_GetSFXUnit , FSOUND_DSP_SetActive

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