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
0
votes
1 answer

How do I call Mix_GetError from the nim SDL2 Mixer bindings?

There are multiple references in the nim SDL2 mixer.nim file to Error messages can be retrieved from Mix_GetError(). However, I can't seem to find this function defined in the mixer.nim file How can I get the latest error string?
lilroo
  • 2,928
  • 7
  • 25
  • 34
0
votes
1 answer

Mix_PlayChannel function in SDL_mixer

As described in documentation, Mix_PlayChannel function have a 3 parameters: channel: Channel to play on, or -1 for the first free unreserved channel. chunk: Sample to play. loops: Number of loops, -1 is infinite loops. Passing one here plays the…
Joseph Conrad
  • 43
  • 1
  • 6
0
votes
1 answer

SDL_Mixer Mix_LoadWAV can not find RIFF or WAVE identifiers

I have asked this before since december but was ignored everywhere so I am trying to ask this one last time. I am trying to load an audio file (as an Mix_Chunk) but I am getting the following error message: "Could not find RIFF or WAVE identifiers…
Lila
  • 46
  • 1
  • 7
0
votes
1 answer

How do I fix an SDL Mixer "Unsupported block alignment" error?

I'm using SDL2 and the SDL mixer library to attempt to play a WAV file. After calling the Mix_LoadWAV_RW function, I get the following error string: "Unsupported block alignment" In case it matters, I'll note that I got the *SDL_RWops by calling…
Ryan1729
  • 940
  • 7
  • 25
0
votes
0 answers

SDL Mixer Audio Randomly Gets Louder

I wrote a C++ game using SDL 2.0 and SDL_Mixer. Sometimes when playing audio a sound randomly becomes louder. It seems to be when multiple sounds play at the same time, but I'm not sure why. Here's the two functions I'm calling to play sounds in my…
Christopher Perry
  • 38,891
  • 43
  • 145
  • 187
0
votes
1 answer

SDL2 pcm audio playing too fast

I wrote a library to read unsigned 8 bit pcm audio from a old game and I stuffed the raw data into a Mix_Chunk using this code: Mix_Chunk sfx; sfx.allocated = 1; sfx.abuf = (Uint8*)data; sfx.alen = length; sfx.volume = 32; I know the samplerate is…
user12586940
0
votes
0 answers

Music Player program freeze on Xbox

I am making a music player called XMusic, which you might know from another problem I have posted here. If you don't, I am making it for PC and Xbox (using nxdk), and it uses the SDL_mixer library. I have the problem where it doesn't open any file…
0
votes
0 answers

SDL_Mixer dll not found

Im made a game in Visual studio 2019. For that i've setup myself SDL2, SDL_image, SLD_ttf using NuGet installer in Visual studio. Now I installed SDL_mixer as well, coppied all the the mixer .dll files into the same folder as my program ( did the…
Martin N
  • 1
  • 1
0
votes
1 answer

Get sound file path for SDL_mixer with VC++ (VS2017)

I managed to install the SDL and integrate it into my Visual Studio 2017 project for Windows 10. My main problem is the playback of audio files. Indeed, when I put the absolute path of the audio file, everything works perfectly well. #include…
user7882343
0
votes
0 answers

Missing files for SDL_Mixer

I planned on adding sound effects to a smal project. i downloaded the SDL_Mixer dev-library for mingw32, moved all the files from its lib folder to the mingw32 lib folder, did the same for include and bin. But iam still not able to compile anything…
0
votes
0 answers

libSDL2-mixer: How to alter samples from a wav file MixChunk?

I am using libSDL2's mixer for playing audio stored as wav files in a project of mine, but I need to do some signal processing on the audio data and that requires me to access the individual samples (i.e: as an array of doubles). So I'm looking for…
Louis T
  • 75
  • 8
0
votes
0 answers

WAV sound plays incorectly in SDL mixer

Im trying to play these two audio files using SDL. point_normal.wav plays correctly while piecedrop.wav sound is messed up. IT sounds like radio static. If I open both files on the Gnome player both play correctly. I tried using ffmpeg to change the…
Matias Barrios
  • 4,674
  • 3
  • 22
  • 49
0
votes
1 answer

SDL_mixer can panning?

I compared SDL_mixer and openAL. I decided to use SDL_mixer because it is easy to handle. SDL_mixer is very easy to operate sound effects and BGM. But does this correspond to panning (swinging the sound left and right)? In addition, some articles…
PERIPERI
  • 1
  • 2
0
votes
1 answer

How to Add External Project SDL_mixer to a Project with SDL 1.2?

I’m trying to build the abuse-tool from Abuse with cmake. Abuse-tool mainly depends on SDL1.2 and SDL_mixer. So I have following CMakeLists.txt file : cmake_minimum_required (VERSION 3.12) find_package…
Wingjam
  • 742
  • 8
  • 17
0
votes
2 answers

C SDL2 Mixer Play Wav from pointer

So I have an archive that is loading the my .wav files into memory and I am trying to play a .WAV from a void* or handle in memory. II cannot have all the .wav files in the directory and I have a function that is loading them into memory. Here is…
LUser
  • 1,127
  • 4
  • 23
  • 39