With following code i can play a song.The first time when i call the function it works. But if the song is playing and i call again this function, then the song stop and i have to call again the function to play the song.
What should i do to call the function just one time and play my song again?
[code] FSOUND_SAMPLE samp1;
// FSOUND_SetBufferSize(100); / This is nescessary to get FX to work on output buffer */
FSOUND_Init(44100, 16, FSOUND_INIT_ENABLESYSTEMCHANNELFX);
/* PCM,44,100 Hz, 16 Bit, Stereo */ samp1 = FSOUND_Sample_Load(FSOUND_FREE, "d:/jukebox/sounds/" + artist_cb->currentText() + "/" + ( listView->currentItem() )->text( 0 ) + "", FSOUND_HW2D, 0, 0); FSOUND_Sample_SetMode(samp1, FSOUND_LOOP_OFF); int channel = FSOUND_PlaySound(FSOUND_FREE, samp1);
- raphaelf asked 13 years ago
Please login first to submit.