MaxMod2 being a pain in the arse again!

BlitzMax Forums/BlitzMax Programming/MaxMod2 being a pain in the arse again!

GfK(Posted 2012) [#1]
Just got around to trying my new game on my laptop, and once again, MaxMod 2 is playing silly buggers. Works perfectly on my desktop PC but on my laptop I get "EXCEPTION ACCESS VIOLATION" at runtime (with debug on), and the error points to this line (60) in rtaudio.bmx:
		t._driver=CreateAudioDriver_RtAudio()

Any ideas? Wish there was an alternative [for streaming audio] to this bloody thing!!

Last edited 2012


Grisu(Posted 2012) [#2]
I don't use MaxMod, but perhaps your laptop soundcard isn't supported by the sound driver? You could try to recompile the driver with another flag set? http://www.music.mcgill.ca/~gary/rtaudio/apinotes.html

Have you tested these alternative libraries already?
Fmod: http://fmod.org
Bass: http://www.un4seen.com


GfK(Posted 2012) [#3]
I just tried a build of my game from my desktop pc, and that works fine on my laptop so I don't think there's a hardware issue. Might have to compare mingw versions as thats the only thing that could be different.


popcade(Posted 2012) [#4]
Update your sound card driver may help, not guaranteed tho.


GfK(Posted 2012) [#5]
Update your sound card driver may help, not guaranteed tho.
It won't help. I already said it works fine if I compile on a different PC.


GfK(Posted 2012) [#6]
Right, once again I'm making voodoo dolls of MinGW and MaxMod.

Still getting this error, done all the usual fannying on with MinGW/env vars, copying files everywhere, all that business, and, nothing. Still getting this stupid error.

The EXE works if I compile it on my other PC then move it to my laptop, but MaxMod2 just will not compile on my laptop and I'm at a complete loss as to why (other than its nothing to do with hardware).

Anybody got any ideas, before I copy MaxMod2 and MinGW onto a CD, then set fire to it?

[edit] Oh, and both PCs have Windows 7 (one Home Premium, one Pro).

Last edited 2012


GfK(Posted 2012) [#7]
Hmm... must learn how to read. Desktop PC has nuwen MinGW distro 7.2 with GCC 4.6.2, not 4.7.2!

Distro 7.2 isn't available any more - great, so going to have a crack at 8.0...


GfK(Posted 2012) [#8]
SUCCESS!! \o/

If anybody else ends up with MaxMod2 throwing an EXCEPTION ACCESS VIOLATION then for me, nuwen.net's Distro 9.2 (GCC 4.7.2) does NOT like MaxMod2 (or vice versa).

nuwen.net's Distro 8 (GCC 4.6.3) compiles fine. So... install that. Later versions MAY work, but I haven't and won't test them. It works so I'm not rocking the boat.


Russell(Posted 2013) [#9]
As most of my other modules, including wx and the majority of bah's, are working with 4.7.2 I hesitate to modify my minGW installation.

Brucey, or anyone, is there a solution to this?

On a similar note: I was perusing SourceForge last night and came across this library for playing mod files (cross-platform): XMP (eXtended Module Player), available as a command line player or a library.
Since Maxmod2 seems to be broken with the latest GCC, does anyone want to have a go wrapping this one? It's here:

http://sourceforge.net/projects/xmp/?source=directory

Mind you, this handles mods only (a LARGE number of different kinds), but doesn't do FLAC, Ogg or any other sound files, so getting MaxMod2 to work with GCC 4.7.1/4.7.2 would be preferable.

Russell