Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix support for mono and 5.1 Vorbis files #154

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

samhocevar
Copy link

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.

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
Copy link
Contributor

MarkKremer commented Oct 9, 2023

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:

  • 1 channel: use the channel for both Beep channels
  • 2 channels: keep as-is
  • 3+ channels: use the 1st and the 3rd channel

According to this and this the 1st and 3rd channels are the front left and front right channels.

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.

2 participants