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

Wav bitrate fix #566

Merged
merged 3 commits into from Jul 16, 2022
Merged

Wav bitrate fix #566

merged 3 commits into from Jul 16, 2022

Conversation

destroid11
Copy link
Contributor

Calculated bitrate for WAVE files did not match correct value (as shown in foobar2000 or calculated manually)

Should be: num channels * bits per sample * sample rate

Tests for WAVE were checking incorrect values for bitrate. Redbook audio (stereo, 16bit, 44100Hz) for example should have a bitrate of 1411200 bits per second.

Copy link
Collaborator

@phw phw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change looks sound to me

that's a Python 2 thing
@lazka lazka merged commit 3c99737 into quodlibet:master Jul 16, 2022
@lazka
Copy link
Member

lazka commented Jul 16, 2022

thanks!

sampsyo added a commit to beetbox/mediafile that referenced this pull request Oct 25, 2022
Mutagen recently updated its policy for calculating this:
quodlibet/mutagen#566

So we now match its output, and we require the version of Mutagen that
produces this output.
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.

None yet

3 participants