---
name: "set_sound_input_source"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/set_sound_input_source/3alleg4"
---

# set\_sound\_input\_source(3alleg4)

Selects the audio input source. Allegro game programming library.

## NAME

set\_sound\_input\_source - Selects the audio input source. Allegro game programming library.

## SYNOPSIS

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

**int set\_sound\_input\_source(int source);**

## DESCRIPTION

Selects the audio input source. The parameter should be one of the values:

```
   SOUND_INPUT_MIC
   SOUND_INPUT_LINE
   SOUND_INPUT_CD
```

## RETURN VALUE

The function returns zero on success, or -1 if the hardware does not provide an input select register (ie. you have no control over the input source).

## SEE ALSO

**start\_sound\_input**(3alleg4)
