I was just wondering whether it is possible to play more than one stream at a time.
I have a forward looping file that is playing and want to play a second (non-looping) file just once while the first is still running.
I have tried loading two separate files and using individual channel handles, but when the second file finishes playing, the first file also stops.
Does anybody have any clues as to where I could be going wrong?
- fatfairy asked 14 years ago
Actually.. thought I should include some of the code and see if that inspires any of you to point out what exactly I am doing wrong:
/* This starts the first sample fine..*/
fsoundsample= FSOUND_Sample_Load(0, formatSoundName("heart.wav"), FSOUND_LOOP_NORMAL, 0, 0);
channelHandle= FSOUND_PlaySoundEx(FSOUND_FREE, fsoundsample, FALSE);
/* Some time later this code executes, but after the second sample has played BOTH the first and second samples stop. */
fss= FSOUND_Sample_Load(0, formatSoundName("whistle.wav"), FSOUND_LOOP_OFF, 0, 0);
ch= FSOUND_PlaySoundEx(FSOUND_FREE, fss, FALSE);
Hope this inspires somebody
Please login first to submit.