---
name: "start_sound_input"
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/start_sound_input/3alleg4"
---

# start\_sound\_input(3alleg4)

Starts recording in the specified format. Allegro game programming library.

## NAME

start\_sound\_input - Starts recording in the specified format. Allegro game programming library.

## SYNOPSIS

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

**int start\_sound\_input(int rate, int bits, int stereo);**

## DESCRIPTION

Starts recording in the specified format, suspending audio playback as  necessary if the card is not full duplex.

## RETURN VALUE

Returns the buffer size in bytes if successful, or zero on error.

## SEE ALSO

**install\_sound\_input**(3alleg4), **read\_sound\_input**(3alleg4), **stop\_sound\_input**(3alleg4), **digi\_recorder**(3alleg4), **set\_sound\_input\_source**(3alleg4), **get\_sound\_input\_cap\_parm**(3alleg4), **get\_sound\_input\_cap\_bits**(3alleg4), **get\_sound\_input\_cap\_rate**(3alleg4), **get\_sound\_input\_cap\_stereo**(3alleg4)
