Overview Members Chapter Previous Next

CDXSoundBuffer::Play

BOOL Play( DWORD dwFlags = 0 , int Pan = 0 , int Volume = 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.