0
0

Hi, I’m having problem with my code – I’m trying to play simple .midi file.
I did include my midi file, fmod.dll and did linked fmodvc.lib in my compiler.
My program compiles sucsessfully but I dont hear anything, here is the code :

[code:bbs0gfst]

include <iostream>

include <fmod.h>

using namespace std;

int main () {

cout &lt;&lt; &quot;To exit - press any key &quot; &lt;&lt; endl;

system(&quot;Pause&quot;);


FMUSIC_MODULE *mu = NULL;
FSOUND_Init(32000, 64, 0);

mu = FMUSIC_LoadSong (&quot;canyon.mid&quot;);
FMUSIC_PlaySong (mu);




    return 0;

}

[/code:bbs0gfst]

Thanks.

  • You must to post comments
0
0

Anyone?:(

  • You must to post comments
0
0

You’re playing your song, and then immediately exiting the program. Try putting your system(pause) after the playsong call.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.