0
0

Hi,

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?

Thanks,

Jules

  • You must to post comments
0
0

try calling play with fsound_free rather than a specific channel number

  • You must to post comments
0
0

Thanks for the suggestion but that is already what I am doing :(

If you have any other ideas they will be most appreciated!

Thanks again,

Jules

  • You must to post comments
0
0

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:

[code:18o2eqrh]
/* 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);
[/code:18o2eqrh]

Hope this inspires somebody :(

Jules

  • You must to post comments
0
0

😳

Ok… ok… just spotted it myself after 2 1/2 hours. Loading into the same entry of sample pool wasn’t the brightest idea that I’ve ever had!

Thankyou for not barring me from the forum for that schoolgirl error!!

Jules 😳

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.