Skip to content

How does MPD handle ALSA? #1792

Discussion options

You must be logged in to vote

You mean sample rate, not bit rate?

Usually there would be a call to snd_pcm_hw_param_set() to change the bitrate.

[quotation needed]

And here's my quotation right from the MPD source code:

err = snd_pcm_hw_params_set_rate_near(pcm, hwparams,
&output_sample_rate, nullptr);

This call has been working fine for MPD for the last 20 years.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LarsGrootkarzijn
Comment options

Answer selected by LarsGrootkarzijn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants