kukugt / mupen64plus

Automatically exported from code.google.com/p/mupen64plus
0 stars 0 forks source link

Building jttl_audio on Windows #166

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I have done the following to build jttl_audio on Windows (it also compiles 
in its current state.)

Please apply 'main.c.patch' to ifdef out some OSS audio stuff.

Add the following to pre.mk (to make sure it builds as before on Linux):
ifeq ($(OS),LINUX)
  CFLAGS = -D__OSS_PLATFORM__
endif

This patch will not make sound working on Windows, but it will reduce the 
FPS to the correct level.

I will post a patch here to make sound working also, but that will be a 
hack. This will (probably) be solved when we get a gfx plugin working. (On 
Windows SDL requires that the VIDEO is initialized before AUDIO to make it 
work.)

Attached is also a SConstruct file that will build the .dll file. (Requires 
SCons, Python and manually edit of the SDL path inside the file (2x)). 
Place the file in the jttl_audio folder and write 'scons' from command 
line.

Original issue reported on code.google.com by olejl77@gmail.com on 28 Oct 2008 at 6:43

Attachments:

GoogleCodeExporter commented 8 years ago
I made this hack just to verify that the audio plugin was working. It seemed 
easier 
than making any of the gfx plugins work :)

The hack will open one dummy SDL window. I did it like this to be able to 
initialize 
the SDL_VIDEO before SDL_AUDIO. I never programmed any SDL before so use it at 
your 
own risk.

Also the '-DSOUNDHACK', has to be "uncommented" in the SConstruct file before 
typing 
'scons' in cmd.exe

Original comment by olejl77@gmail.com on 28 Oct 2008 at 6:57

Attachments:

GoogleCodeExporter commented 8 years ago
This plugin now build correctly under Visual Studio in Windows.

Original comment by richard...@gmail.com on 12 Jan 2010 at 5:14