I’m a FMOD newbie, so please bear with me. I’ve successfully played a mp3 in a DOS window with this code:
samp = FSOUND_Sample_Load(FSOUND_FREE, "abc.mp3", FSOUND_HW2D | FSOUND_ENABLEFX, 0, 0);
int channel = FSOUND_PlaySound(FSOUND_FREE, samp);
printf("Press any key to quit\n");
printf("Playing %s...\n", FMUSIC_GetName(mod));
Now I wanted to do the same but use it in a windows application (play a mp3 after a button is clicked), which doesn’t work. In the DOS version the command getch() keeps the song playing. In a windows application “getch()” doesn’t work. Any clues?
- delpino asked 11 years ago
Please login first to submit.