---
name: "get_sound_input_cap_parm"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/get_sound_input_cap_parm"
---

# get\_sound\_input\_cap\_parm(3alleg)

Detects if the specified recording parameters are supported. Allegro game programming library.

## NAME

get\_sound\_input\_cap\_parm - Detects if the specified recording parameters are supported. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**int get\_sound\_input\_cap\_parm(int rate, int bits, int stereo);**

## DESCRIPTION

Checks whether the specified recording frequency, number of bits, and  mono/stereo mode are supported (and how) by the current audio driver.

## RETURN VALUE

The function returns one of the following possible values:

```
   0  = It is impossible to record in this format.
   1  = Recording is possible, but audio output
        will be suspended.
   2  = Recording is possible at the same time as
        playing other sounds (full duplex sound card).
   -n = Sampling rate not supported, but rate 'n'
        would work instead.
```

## SEE ALSO

[**start\_sound\_input**(3alleg)](/start_sound_input/3alleg.md), [**get\_sound\_input\_cap\_bits**(3alleg)](/get_sound_input_cap_bits/3alleg.md), [**get\_sound\_input\_cap\_rate**(3alleg)](/get_sound_input_cap_rate/3alleg.md), [**get\_sound\_input\_cap\_stereo**(3alleg)](/get_sound_input_cap_stereo/3alleg.md)
