Skip to content

Fix playback of MP3 files - #37

Merged
thp merged 2 commits into
masterfrom
thp/mp3-fixes
Jan 23, 2026
Merged

thp merged 2 commits into
masterfrom
thp/mp3-fixes

Conversation

@thp

@thp thp commented Jan 23, 2026

Copy link
Copy Markdown
Owner

Playback was broken due to the expression:

(si->channels == 1) ? MPG123_STEREO : MPG123_MONO,

Meaning channels == 1 mapped to stereo previously, and any other value (channels == 2) mapped to mono. This resulted in apparent "double-speed" playback for stereo files.

This patch fixes it using:

(si->channels == 1) ? MPG123_MONO : MPG123_STEREO,

As a drive-by change, defining WAVBREAKER_MP3_DEBUG (for additional debug output during development) was broken, and this is now fixed.

@thp
thp merged commit 8ede701 into master Jan 23, 2026
5 checks passed
@thp
thp deleted the thp/mp3-fixes branch January 23, 2026 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant