0
0

please help me to work my code with gcc compiler:

include <conio.h>

include "include/fmod.h"

ifdef WIN32

#include &lt;windows.h&gt;
// link to fmod lib
#pragma comment(lib,&quot;lib/libfmod.a&quot;)

else

#include &quot;include/wincompat.h&quot;

endif

FSOUND_SAMPLE* handle;

int main ()
{
// init FMOD sound system
FSOUND_Init (44100, 32, 0);

// load and play sample
handle=FSOUND_Sample_Load (0,"Media/Hawai.mp3",0, 0, 0);
FSOUND_PlaySound (0,handle);

// wait until the users hits a key to end the app
while (!_kbhit())
{
}

// clean up
FSOUND_Sample_Free (handle);
FSOUND_Close();
}

It compile with gcc but don’t make any exe.

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.