sdl-mixer

How to statically compile an SDL game on Windows

I have been trying to produce a statically linked "single binary" version of my game for windows. I want to link with sdl, sdl_image and sdl_mixer which in turn pull in a few support libraries. Unfortunately I haven't found a way to get them all to compile and link using cygwin/mingw/gcc. As far as I can tell all existing public versions...

Why would SDL_Mixer not play music for certain mp3s?

Why would SDL_Mixer not play music for certain mp3s? I am utilizing SDL_Mixer for music playback in an application I am creating. On certain songs (entire albums actually), the music will simply not play without returning any errors. The music data loads successfully using Mix_LoadMUS and when executing Mix_PlayMusic with that data, it ...

Running music as SDL_Mixer chunks

Currently, SDL_Mixer has two types of sound resources: chunks and music. Apart from the API and supported formats limitations, are there any reasons not to load and play music as a SDL_Chunk and channel? (memory, speed, etc.) ...

I have an unintended delay in playing a Mix_Chunk

So I am trying to learn SDL and creating a small game. When the user presses the space bar, it should play a sound. This works, but the sound takes about .5 seconds to play... How would I fix this? I've checked the actual file to see if the delay was just part of it, and that turned out to not be the case. SDL with c++ on win vista. He...

Windows 7: Decoupling game sound and midi volume?

I am maintaining an OpenGL port of a computer game classic (Descent). It controls sound via SDL_mixer. On Windows 7 the following problem has appeared: Whenever the midi volume is changed, the overall sound volume changes as well. This was not the case on Windows XP. Is there a way to decouple the sound volume from the midi volume, be it...

SDL. Current music position

Hi all, I load my music track using SDL_mixer function: Mix_Music * SDLCALL Mix_LoadMUS(const char *file); For synchronization with video I need to know current music position. How can I determine this? ...