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

Use 3 bytes per sample when playing 24-bit files in op/sndio #613

Merged
merged 1 commit into from Jan 22, 2017
Merged

Use 3 bytes per sample when playing 24-bit files in op/sndio #613

merged 1 commit into from Jan 22, 2017

Conversation

ghost
Copy link

@ghost ghost commented Jan 21, 2017

When par.bps is unset sndio will default to SIO_BPS(bits) ("the
smallest value for bps that is a power of two and that is large enough
to hold bits" sio_open(3)). 4 bps in the case of 24 bits which leads
to a horrible whitenoise screeching sound.

I'm unsure why it worked in cmus 2.7.1 without this change.

When par.bps is unset sndio will default to SIO_BPS(bits) ("the
smallest value for bps that is a power of two and that is large enough
to hold bits" sio_open(3)).  4 bps in the case of 24 bits which leads
to a horrible whitenoise screeching sound.
@mahkoh
Copy link
Member

mahkoh commented Jan 21, 2017

Could you do a bisect to find out which commit broke this?

@ghost
Copy link
Author

ghost commented Jan 22, 2017

Commit edc7974 is to blame, but I don't think the FLAC plugin does anything wrong, before commit edc7974 ip/wav has the same problem without this fix.

@flyingmutant flyingmutant merged commit 0fb39d8 into cmus:master Jan 22, 2017
@mahkoh mahkoh mentioned this pull request Jan 22, 2017
9 tasks
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

2 participants