<TD>The channel number/handle to change the frequency for. FSOUND_ALL can also be used (see remarks).<BR>
</TD><TRVALIGN=top><TD><I>freq</I></TD>
<TD>The frequency to set. Valid ranges are from 100 to 705600, and -100 to -705600.<BR>
</TD></TABLE>
<H3>Return Value</H3>
On success, TRUE is returned.<BR>
On failure, FALSE is returned.<BR>
<H3>Remarks</H3>
FSOUND_ALL is supported here. Passing this will set ALL channels to specified frequency.<BR>
If FSOUND_ALL is used the last channel success flag will be returned. This return value is not useful in most circumstances.<BR>
Negative frequencies make the sound play backwards, so FSOUND_SetCurrentPosition would be needed to set the sound to the right position. <BR>
---------<BR>
NOTE: FSOUND_HW3D limitations in Direct Sound.<BR>
Every hardware device has a minimum and maximum frequency. You can determine these by looking at the DirectSound caps and viewing the members dwMaxSecondarySampleRate and dwMaxSecondarySampleRate.<BR>
FMOD clamps frequencies to these values when playing back on hardware, so if you are setting the frequency outside of this range, the frequency will stay at either dwMinSecondarySampleRate or dwMaxSecondarySampleRate.<BR>
To find out these two values in fmod (maybe whether to decide to drop back to software mixing or not), you can use the following code.<BR>
---------<BR>
include <dsound.h><BR>
int minhwfreq, maxhwfreq;<BR>
if (FSOUND_GetNumHardwareChannels() && FSOUND_GetOutput() == FSOUND_OUTPUT_DSOUND)<BR>