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 FLAC, MikMod MOD, Timidity MIDI, Ogg Vorbis, and SMPEG MP3 libraries.
Questions tagged [sdl-mixer]
117 questions
0
votes
0 answers
Unresolved external symbols while building SDL2_mixer using Visual C++
I am trying to build SDL2_mixer (2.0.2) using Microsoft Visual C++ in Visual Studio, it appears that I have properly configured it.
But seems that the two example projects playmus and playwave return errors (17 in total for each) regarding…

Ruks
- 3,886
- 1
- 10
- 22
0
votes
1 answer
Checking for music playing with SDL2
Using SDL to make a simple game and I have music playing in the background from the start of the program, but I want to be able to check when the music has stopped playing so that the next track can be started. I'm using the SDL_mixer library to…

Bananas88
- 23
- 8
0
votes
0 answers
SDL2_mixer SDL_AudioStreamFlush could not be located in the dynamic link library
I tried to make a sound in sdl 2, but when i compiled this line:
Mix_OpenAudio( 44100, MIX_DEFAULT_FORMAT, 2, 2048 );
my exe told me that SDL_AudioStreamFlush could not be located in the dynamic link library SDL2_mixer.dll (there was also path to…

Maxim Zhuchkov
- 141
- 1
- 10
0
votes
1 answer
SDL_AudioStreamFlush could not be located in the dynamic link library SDL2_mixer.dll
I'm just trying to follow along with the c++ graphics tutorial from MakingGamesWithBen about SDL mixer, an audio system. I got the development library from:
SDL_Mixer Development Library Download.
It's the SDL2_mixer-devel-2.0.2-VC.zip folder under…

silentsleuth
- 1
- 1
0
votes
1 answer
Audio bug crashing my C++ program
I'm writing a very simple game with C++ and SDL/SDL_mixer. The game uses some simple audio functions that play sound effects when something happens, and my program has been working fine until now. At a seemingly random time, the program will start…

Austin Gayler
- 4,038
- 8
- 37
- 60
0
votes
1 answer
SDL_Mixer is playing single chunk over itself possible?
I'm having trouble with SDL_Mixer (my lack of experience). Chunks and Music play just fine (using Mix_PlayChannel and Mix_PlayMusic), and playing two different chunks simultaneously isn't an issue.
My problem is that I would like to play some…

Luft
- 185
- 4
- 17
0
votes
0 answers
SDL_Mixer music has to play twice to work
I'm currently working on a simple music player, however, I've hit a problem where I can loop music indefinitely or any number of times > 1, but if I try to play the song only once then nothing plays. Having searched here too for about 30 minutes I…

Simian
- 1
- 3
0
votes
1 answer
playing encrypted files using SDL_Mixer
I have some encrypted mp3 files that I would like to play from my program using SDL_Mixer. All the documentation I've come across have only shown how to load music by specifying a path and file name, and I haven't come across an example that plays…

George
- 571
- 1
- 8
- 17
0
votes
1 answer
Undefined References to SDL_mixer functions from a static library (Code::Blocks)
So, I've made a static library with references to SDL_mixer functions (and those work fine), but when I try to build the project that links to the library, Code::Blocks tells me that every function used (in the static library) is an undefined…

Davis Last
- 93
- 1
- 4
- 12
0
votes
1 answer
SDL_Mixer MOD music looping
I'm trying to loop some mod music in an SDL(2) application using SDL_Mixer, but I'm finding that the library doesn't handle IT/XM/S3M/MOD formats very well.
The music plays and it can technically loop, but there's a horrible stutter as the track is…

BobbyFinch
- 351
- 3
- 9
0
votes
1 answer
SDL_TTF and SDL 2 not working together. Giving Unhandled Exception
So I am trying to make a text renderer in SDL2. And when I am updateing the text every frame of the game, eventually it gives me this error:
Unhandled exception at 0x6C7B543D (SDL2.dll) in Games.exe: 0xC0000005: Access violation reading location…
user5688956
0
votes
1 answer
SDL_mixer wont play sound Raspberry Pi
I can't get SDL_Mixer to play sound on the raspberry. The program compiles and builds OK, but all I hear is a short squeak (like static) and nothing.
Any ideas?
#include
#include
#include
#include…

Crytrus
- 751
- 1
- 8
- 14
0
votes
1 answer
SDL_mixer function Mix_LoadMUS_RW causes Access Violation
I have a problem in loading music from memory with SDL_mixer.
The following "minimal" example including a bit of error checking will always crash with an access violation in Music::play.
#include
#include
#include…

Hanno Bänsch
- 284
- 3
- 13
0
votes
0 answers
SDL_mixer no sound for certain mp3 files
So I'm having issues with SDL_mixer, and it seems it plays fine on a good amount of mp3s (although "fine". I noticed that at the beginning of some MP3s there's a small segment of sound corruption, and then it starts playing) but on some MP3 files,…

lufinkey
- 342
- 4
- 15
0
votes
0 answers
SDL_mixer plays static instead of .wav file
I'm making a version of Tetris in SDL 2 that has sounds. I have background music, which works fine. However, the sound effects (move, rotate, etc.) play static instead of what they're supposed to play.
Some code:
Definitions:
Mix_Music…

ricky3350
- 1,710
- 3
- 20
- 35