---
name: "snd_pcm_rate_range_to_bits"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/snd_pcm_rate_range_to_bits"
---

# snd\_pcm\_rate\_range\_to\_bits(9)

converts rate range to SNDRV\_PCM\_RATE\_xxx bit

## NAME

snd\_pcm\_rate\_range\_to\_bits - converts rate range to SNDRV\_PCM\_RATE\_xxx bit

## SYNOPSIS

**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

## DESCRIPTION

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.

## COPYRIGHT
