[alsa-devel] How to inform application about sample rate changed from device.

Clemens Ladisch clemens at ladisch.de
Mon Dec 3 17:45:24 CET 2018


Chakravarthi Pradeep wrote:
> When device is generating audio sample rate of 44.1KHz then how to
> inform VLC that use 44.1KHz sample rate(same is for 96KHz)

ALSA PCM devices have constraints that restrict what parameters
applications can configure.

Usually, the constraints are installed when the PCM device is opened.
Change runtime->hw.rate_min/_max to the same value.


Regards,
Clemens


More information about the Alsa-devel mailing list