0
0

Hello,

I’m interfacing to FMOD via Factor.
I would like to play a song, with the song definition in Factor and samples triggered by Factor.

So I’m creating a custom stream and I would like the callback to play samples, eg:

FSOUND_Stream_Create

-> callback

  -> FSOUND_PlaySound

FSOUND_PlaySound only seems to play the sample once, though.
The callback is called correctly every half second or so, but FSOUND_PlaySound returns -1 each time.
I’ve channels -1 (FSOUND_FREE), 0, 1, 2.

When I use the exact same line to play the sample outside of the callback it works fine.
Any tips on what I might be doing wrong ?
Is this a good approach ?

Regards,

Anton.

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.