0
0

Hello,
i’m a new user and I’ve a problem with this C code:

include <windows.h>

include <stdio.h>

include <conio.h>

include “fmod.h”

define PATH “../DrumBea1.mid”

int main()
{
FMUSIC_MODULE *music ;
FSOUND_Init(44100, 32 , 0);
music = FMUSIC_LoadSong(PATH);
printf(“il tipo di handle e’: %d\n”, music);
FMUSIC_PlaySong(music);
FSOUND_Close();
return 0;
};

The handle is 3313984.

I have compiled it and it is OK but when I lunch the program no sound is played. Why??

Thanks a lot

  • You must to post comments
0
0

How much delay?
However I have insert Sleep(10) and no sound is played,
I cancel FSOUND_Close() and no sound is played.

Could you suggest to me what I must add to code?

Thanks a lot

Bye

  • You must to post comments
0
0

Ok now it’s working!!
thanks

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.