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: Invalid data is assigned to the right channel when playing a mono MP3. #559

Merged
merged 1 commit into from
Sep 4, 2022

Conversation

lovyan03
Copy link
Contributor

Hello, Thanks for this great library and your work !

I have noticed that when I play a mono MP3, the right channel contains a buzzing sound.

PBMB3768.MOV

On the other hand, the AAC decoder appears to assign the same data to both channels from mono data.
So, in this pull request, I copied the data from the left channel to the right channel when the data is mono, so that the buzzer-like sound is not output.

I just couldn't decide if it would be best to make the change at this location in the source code.
If you like this modification, I would be happy to hear from you, but if you have any suggestions on where I should fix it, please direct me.

Best regards.

@earlephilhower earlephilhower merged commit 46b3657 into earlephilhower:master Sep 4, 2022
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