faiface / beep

A little package that brings sound to any Go application. Suitable for playback and audio-processing.
MIT License
2.03k stars 150 forks source link

Fix support for mono and 5.1 Vorbis files #154

Open samhocevar opened 1 year ago

samhocevar commented 1 year ago

The code no longer assumes Vorbis files are stereo (they may have up to 255 channels), which caused e.g. mono files to play at twice their speed.

The current strategy for files with more than 2 channels is to only play the first and last channels, and drop the rest.

MarkKremer commented 9 months ago

Cool! I would like to include this in the new fork of Beep.

May I suggest to choose the channels in the following way depending on the available number of channels: