Overview Members Chapter Previous Next

## CDXSoundBuffer::PlayFrequency

BOOL PlayFrequency( | DWORD freq , int pan = 0 , DWORD dwFlags = 0 ) ;

Plays the loaded WAV file. On a stereo sound card you can adjust the Pan parameter to play sounds from the left or right speaker, the range of values is from 10,000 to -10,000. If the dwFlags parameter is set to DSBPLAY_LOOPING then the sound will play continually until Stop is called. As additional function you can set the frequency in which the sound is played.