csabahruska / proteaaudio

Simple audio library for Windows, Linux, OSX. Supports Mp3, Ogg, Wav playback and multichannel mixing.
28 stars 8 forks source link

Stereo audio files playing in mono #18

Open huantianad opened 10 months ago

huantianad commented 10 months ago

Audio files loaded from .mp3 and .ogg files are playing in mono, despite being stereo audio files. Happens both using native and SDL backends, on Linux kernel 6.6.1, Pipewire 0.3.84.

Not sure if I'm doing something wrong when init-ing the audio system, or my files are bad.

csabahruska commented 10 months ago

It seems to be a mixer bug. I'll check it. Thanks for reporting it.

huantianad commented 10 months ago

Is this something that is occurring on other platforms as well?

csabahruska commented 10 months ago

I did some work on this issue, but it's not finshed yet. Although proteaaudio seems to work, but proteaaudio-sdl mixer is still broken. I've uploaded the code to this branch: https://github.com/csabahruska/proteaaudio/tree/stereo-audio-files-playing-in-mono-fix