---
name: "get_sound_input_cap_bits"
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_bits"
---

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

Checks which audio input sample formats are supported. Allegro game programming library.

## NAME

get\_sound\_input\_cap\_bits - Checks which audio input sample formats are supported. Allegro game programming library.

## SYNOPSIS

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

**int get\_sound\_input\_cap\_bits();**

## DESCRIPTION

Checks which sample formats are supported by the current audio input  driver, returning one of the bitfield values:

```
   0 = audio input not supported
   8 = eight bit audio input is supported
   16 = sixteen bit audio input is supported
   24 = both eight and sixteen bit audio input are supported
```

Example:

```
   cap = get_sound_input_cap_bits();
   if (cap == 0) {
      /* Ugh, no audio input supported? */
   } else {
      if (cap & 8) {
         /* We have eight bit audio input. */
      }
      if (cap & 16) {
         /* We have sixteen bit audio input. */
      }
   }
```

## SEE ALSO

[**start\_sound\_input**(3alleg)](/start_sound_input/3alleg.md), [**get\_sound\_input\_cap\_parm**(3alleg)](/get_sound_input_cap_parm/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)
