0
0

Hi, just downloaded fmod a few days ago and wanted to implement it into my game engine.
I made one function which plays a midi file and one that plays a wav. Now when I call the midi function it plays the beginning of the file until the wav function is called, then the midi file stops and the wav is played.
How can I let them be played simultaniously?
thx

  • You must to post comments
0
0

I started off easily with a “play song” function and a “play sound” function which do a complete initialization of FMOD and then play a sound file passed to the function. The midi file function is called at the beginning of program execution. It plays fine as long as the wav function isn’t called. Then the wav is played and afterwards everything is silent.
I tried placing FSOUND_INIT in a seperate initialization function, but then the midi file stopped about a second after it started playing. This may be the time the program runs in the sound function.
I can’t stay in the sound playing function until the song is over…
How can they play simultaniously?
thx

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.