snd_pcm_rate_range_to_bits(9)

snd_pcm_rate_range_to_bits9

Converts rate range to sndrv_pcm_rate_xxx bit

Usage

unsigned int snd_pcm_rate_range_to_bits(unsigned int rate_min, unsigned int rate_max);

Arguments

rate_min

the minimum sample rate

rate_max

the maximum sample rate

Overview

This function has an implicit assumption: the rates in the given range have only the pre-defined rates like 44100 or 16000.

Return

The SNDRV_PCM_RATE_xxx flag that corresponds to the given rate range, or SNDRV_PCM_RATE_KNOT for an unknown range.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.