0
0

hello everybody!

im tryin to play an mp3 with fmod on linux… but when i run the program there is no sound…
[code:2v7tawzu]

include <fmod.h>

FSOUND_SAMPLE* song;

void play_song()

{
FSOUND_Init(44100, 32, 0);
song = FSOUND_Sample_Load(FSOUND_FREE, "1.mp3", FSOUND_NORMAL, 0, 0);
FSOUND_PlaySound(FSOUND_FREE, song);
return;
}

int main()
{
playsong();

return 0
}
[/code:2v7tawzu]
i compile with : g++ file.cpp -lfmod-3.74
there is no problems with the compilation…
Thanks for ur help :)

  • You must to post comments
0
0

I got it worked out :)

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.