hello, i have committed some new audio code based on sdl_mixer. there is also a very simple demo in the tutorials showing a little how to use it.
the sdl_mixer description: """ SDL_mixer is a sample multi-channel audio mixer library. It supports any number of simultaneously playing channels of 16 bit stereo audio, plus a single channel of music, mixed by the popular MikMod MOD, Timidity MIDI, Ogg Vorbis, and SMPEG MP3 libraries. """ the api is a a little bad at the moment, i think i will aim to have something much more like pygame has unless anyone has any better ideas. also i will attempt to use some 3d positioning code from instinctive blender ( http://blender.org/modules.php?op=modload&name=phpBB2&file=viewtopic&t=5525&sid=f966787fe817f347a8030201468baa1b ) to replace the need for openal. highlights: - mod/xm loading! - should work everywhere sdl_mixer works ( openal is a pain ) drawbacks: - currentlty no 3d positioning - no pitch shifting ( should be possible to implement. does anyone know about this sort of thing? ) the callback functions are missing at the moment as i couldnt get that work ( callbacks for when the music stops etc ). pygame puts events into the sdl event que which might be a good idea. have fun dunk
