Skip to content

Fix mono WAV playing only the left speaker#14

Merged
TroyHernandez merged 1 commit into
mainfrom
fix/wav-mono
Jun 16, 2026
Merged

Fix mono WAV playing only the left speaker#14
TroyHernandez merged 1 commit into
mainfrom
fix/wav-mono

Conversation

@TroyHernandez

Copy link
Copy Markdown
Contributor

tuneR's writeWave defaults to extensible = TRUE, which writes WAVE_FORMAT_EXTENSIBLE and stamps a mono file with channel mask SPEAKER_FRONT_LEFT — so players route it to the left speaker only.

write_audio now passes extensible = FALSE to write plain WAVE_FORMAT_PCM mono (channel_layout=unknown), which plays on both speakers and transcodes to a clean mono mp3. Verified with ffprobe on both the WAV and the transcoded MP3.

tuneR::writeWave defaults to extensible = TRUE, which writes
WAVE_FORMAT_EXTENSIBLE and stamps a mono file with channel mask
SPEAKER_FRONT_LEFT - so players route it to the left speaker only.
write_audio now passes extensible = FALSE to write plain WAVE_FORMAT_PCM
mono (channel_layout unknown), which plays on both speakers and transcodes
to a clean mono mp3 (verified with ffprobe).
@TroyHernandez TroyHernandez merged commit 6bbc547 into main Jun 16, 2026
4 checks passed
@TroyHernandez TroyHernandez deleted the fix/wav-mono branch June 16, 2026 11:33
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