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
1 answer
Stop a song playing using pygame through terminal
My code:
import pygame
import time
pygame.mixer.init() #to initiate the mixer
pygame.mixer.music.load('/home/xolo/bahara.mp3') #load path of song
time.sleep(1)
pygame.mixer.music.stop() #stop loaded song
while pygame.mixer.music.get_busy():
…

xolo
- 13
- 5
0
votes
1 answer
Cutting dependencies
I'm writing a small game in C++ using SDL2/Box2D/OpenGL (plus SDL2 extensions SDL2_mixer and SDL2_ttf). Since I'm approaching version 1.0, I've been thinking about distributing the game, and I just found out that my game has some unexpected…

Elektito
- 3,863
- 8
- 42
- 72
0
votes
2 answers
No audio with SDL/C++
void LoadMusic(string path);
Mix_Music* gMusic = NULL;
LoadMusic("Music/bubble-bobble.mp3");
if(Mix_PlayingMusic() == 0)
{
Mix_PlayMusic(gMusic, -1);
}
if(Mix_OpenAudio(44100, MIX_DEFAULT_FORMAT,…

JangGwang
- 19
- 3
0
votes
1 answer
SDL_mixer: Mix_LoadMUS not working
So when I load a music like this:
Mix_Music *musique = Mix_LoadMUS("../Resources/Mr. Trololo original upload.mp3");
Mix_PlayMusic(musique, -1);
It returns NULL and plays no sound.
But if I load a wav using the same path:
Mix_Chunk *fail =…

user2826636
- 41
- 1
- 7
0
votes
1 answer
SDL C++ Program crashes consistently after about 12 seconds
I am currently making a simple game with SDL in C++. When I compile and run the game in Ubuntu using the command line, the game runs perfectly without problems. However, when I try to compile the same code with Codeblocks in Windows 7, the program…

Ian Tait
- 607
- 1
- 8
- 16
0
votes
1 answer
How do I set up additional SDL libraries in CodeBlocks?
I want to set up SDL_Image, SDL_Mixer and SDL_TTF, but it doesn't seem to work. I'm following Lazy Foo's SDL tutorial and tried setting it up like he says, but it just doesn't work. I put all the include files into include folder, and all the lib…
user2588543
0
votes
1 answer
Gstreamer audiomixer implementation for audio conference , cancel user[1] contribution when streaming to user[1]
Below is the 'theoretical' pipeline that would cancel of particular user's audio contribution in an audio conference mixer. Theory goes like, we invert the user's audio samples from the original and it finally added to the amixer output. It should…

alkber
- 1,426
- 2
- 20
- 26
0
votes
2 answers
SDL_mixer 2 compilation broken in windows using visual studio express with SDL2
Im trying to compile SDL_mixer 2 with SDL2 checked out the latest code from :
http://hg.libsdl.org/SDL_mixer
also compiled with no problem SDL2 and SDL_image.
when compiling SDL_mixer im getting the compilation errors…

user63898
- 29,839
- 85
- 272
- 514
-1
votes
1 answer
Unable to play mp3 file with SDL mixer 2.6.3 in c++
I'm trying to play an mp3 file as background music for my game but somehow the music cannot start and I get this error "Unrecognized audio format". As far as i know, the SDL_mixer 2.6.3 does support mp3 file and I'm sure that the file path is…
-1
votes
1 answer
c++ SDL_mixer error, Mix_LoadWAV_RW with NULL src
For some reason not all sounds is working. The Mix_GetError() returns this error message Mix_LoadWAV_RW with NULL src
I have 57 different sound files loaded and 8 of them is not working and they all give the same error.
The 8 sounds that does not…

zombie1111
- 109
- 3
-1
votes
4 answers
How to repair this error of executing?
Every time I compile my simple SDL1.2 code it's compiled successfully
but when I try to run it via terminal (alt+t in Ubuntu):
./game
Segmentation fault (core dumped)
I get this error. Can you help please? This is the code:
#include
int…

Amir Bennasr
- 216
- 1
- 2
- 10
-2
votes
3 answers
My program crashes sometimes when delete is called on one particular pointer
I'm making an app using SDL 2. I just recently started using the SDL_Mixer library and this has brought about an issue for me. Forgive me if my explanation seems vague, as this bug is extremely confusing.
Sometimes, when closing out of my program,…

Coffee Maker
- 1,543
- 1
- 16
- 29