Questions tagged [sdl-mixer]

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.

117 questions
1
vote
0 answers

SDL mixer fails to load on Embedded Linux

In my team, we develop UI to our Embedded Linux system (kernel version 4.19) using SDL (version 1.2). The board we run on is Amlogic A113X. When we try to load SDL_mixer on our "regular" Ubuntu machines, everything works beautifully, on the board…
David Haim
  • 25,446
  • 3
  • 44
  • 78
1
vote
2 answers

Is there a way to speed up audio .wav file using some SDL_Mixer's function?

I am making a simple game whose audio speed should increase as the player is approaching the end of the level it is playing. So now I was wondering if there was a way to do this using SDL_Mixer. If SDL_Mixer is not the way to go could you please…
Kako ne
  • 11
  • 1
1
vote
0 answers

How to perform a FFT using FFTW and SDL_mixer libraries

I want to write an Audio Visualizer using the SDL_mixer and FFTW libraries. I found many tutorials about how to perform a FFT, and I also performed one by myself, but what data does the FFTW need? And yow do I get that data from my with SDL_mixer…
1
vote
0 answers

Problems using SDL_mixer to play .ogg files

I'm trying to use SDL mixer to play .ogg files in my game. It appears to be installed correctly, it outputs this during the process: checking vorbis/vorbisfile.h usability... yes checking vorbis/vorbisfile.h presence... yes checking for…
Andrew
  • 539
  • 5
  • 20
1
vote
0 answers

What flags do I need to set to be able to statically link SDL2_mixer with external libraries?

I have difficulties with adding dependencies like libFLAC to the configure script via MSYS2 with native mingw-w64. They are simply not detected. However, I have no problem with adding a path to the provided --with-sdl-prefix. With no success I tried…
user9937314
1
vote
1 answer

Trouble linking sdl_mixer with cmake

I specifically get an undefined reference when I call Mix_OpenAudio(...). I am able to include 'SDL_mixer.h' just fine. This is my CMakeList.txt. Sorry about all the other packages included. I'll include the FindSDL_MIXER.cmake as well. I am able…
carlos
  • 35
  • 2
  • 6
1
vote
1 answer

How do I use OGG with SDL_Mixer?

I can't seem to get SDL_Mixer to initialize with OGG support enabled. I know that I must link with libogg, libvorbis and libvorbisfile but it still won't work. I have .dylibs, .frameworks and .as of these three libraries and I've tried them all.…
Indiana Kernick
  • 5,041
  • 2
  • 20
  • 50
1
vote
0 answers

SDL Mixer Load_Mus crashes program

I've been working on my first SDL game and adding sound effects went without a hitch. However as soon as I tried adding music, Mix_LoadMus() crashes the program. if(SDL_Init(SDL_INIT_EVERYTHING) !=0) std::cout<<"SDL_INIT…
1
vote
2 answers

Mix_Halt specific tracks?

In SDL Mix is there a way to halt a specific Mix_Music track? Eg. something like this: //music1 = the target music track to halt if(condition) { Mix_Halt(Music1); } Thanks.
1
vote
0 answers

Undefined reference to SDL_mixer functions

I'm learning SDL right now, and I want to play an MP3 file with SDL_mixer, so I installed it, but when I compile my program I get "undefined reference" errors for every SDL mixer function I use. Here is my compile command: g++ Player.cpp -o Player…
tagelicht
  • 467
  • 3
  • 14
1
vote
1 answer

Initializing SDL_Mixer gives error "Can't setup PulseAudio stream"

I'm coding an app on my raspberry-pi 3 running on Ubuntu-MATE. I use C++ on code::blocks with SDL and SDL_Mixer to play mp3 files (I'm still using the v1.2 of the SDL libs). I get no error when I init SDL, but when I init SDL_Mixer with this line…
G.Vernier
  • 369
  • 2
  • 14
1
vote
1 answer

Get currently playing Mix_Music with SDL_Mixer

I'm implementing sound in my C++ game with SDL_Mixer, and can't find a function in the manual that would give me the Mix_Music that is currently playing. I figure I need it to know whether I can free the Mix_Music or not, depending on whether it is…
Ludwik
  • 2,247
  • 2
  • 27
  • 45
1
vote
2 answers

How to specify device using SDL_mixer

I've got a program that plays some sounds using the SDL_mixer library (http://www.libsdl.org/projects/SDL_mixer/). It works well when I'm just using Mix_OpenAudio to open a connection with the default device. However, I need to target a specific…
Ian
  • 4,169
  • 3
  • 37
  • 62
1
vote
0 answers

SDL Mixer fails to load file on some machines only

I have been searching the web for some help on this for some time but could not find help on this specific problem: I intend to play the wav file "click.wav" with SDL Mixer. For reasons I could not figure out so far, SDL Mixer fails to load it…
1
vote
1 answer

SDL_Mixer: Mix_FreeChunk() crashing on sample created in memory

I was working on adding randomized pitch to sound samples, and that works fine now, but Mix_FreeChunk() crashes when trying to free the chunk after I'm done using it. I made a simplified test to recreate the issue (SDL 1.2.14 and SDL_mixer…
Josh G.
  • 29
  • 5