Skip to content

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

Merged
flyingmutant merged 1 commit into
masterfrom
unknown repository
Jan 22, 2017
Merged

flyingmutant merged 1 commit into
masterfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Jan 21, 2017

Copy link
Copy Markdown

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

mahkoh commented Jan 21, 2017

Copy link
Copy Markdown
Member

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

@ghost

ghost commented Jan 22, 2017 •

Copy link
Copy Markdown
Author

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
3 of 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.

2 participants