alsa-project / alsa-lib

The Advanced Linux Sound Architecture (ALSA) - library
GNU Lesser General Public License v2.1
366 stars 177 forks source link

hw: add "min_rate" and "max_rate" as alternatives to single "rate" parameter #191

Closed bku-sue closed 2 years ago

bku-sue commented 2 years ago

Our typical use case is to limit the rate to between 44100 and 48000, as with these boundaries the resampling becomes easier, than if only allowing 48000.

perexg commented 2 years ago

I implemented my suggestion in 7f2d6c3aac3505ceee4b0d3e8b3ca423ce29b070 and applied your change.