Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to compile? #1

Open
StrikerMan780 opened this issue Jul 18, 2014 · 1 comment
Open

How to compile? #1

StrikerMan780 opened this issue Jul 18, 2014 · 1 comment

Comments

@StrikerMan780
Copy link

I'm wondering, how am I supposed to compile this? I'm thinking of patching a game with this to get proper music playback.

@rkkoszewski
Copy link

On Linux just use the Make file included. On Windows use MinGW, compile vorbis and all dependencies required, and run this in the Shell or CMD:

windres -i wav-winmm.rc.in -o wav-winmm.rc.o
gcc -std=c99 -Wl,--enable-stdcall-fixup -Ilibs/include -O2 -shared -s -o wav-winmm.dll wav-winmm.c player.c wav-winmm.def wav-winmm.rc.o -L. -lvorbisfile-3 -lwinmm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants