0
0

Hello!
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?

THX

[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);

[/code]

  • You must to post comments
0
0

just call [code:2928ogn3]FSOUND_PlaySound[/code:2928ogn3] the rest should only be called once

  • You must to post comments
0
0

hi, thx for a answer.
It works perfect now..

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.