---
name: "al_stop_audio_recorder"
section: "3"
platform: "linux"
package: "allegro"
version: "5.2.11.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/al_stop_audio_recorder"
---

# al\_stop\_audio\_recorder(3)

Allegro 5 API

## NAME

al\_stop\_audio\_recorder - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro_audio.h>
  void al_stop_audio_recorder(ALLEGRO_AUDIO_RECORDER *r)
  ```

## DESCRIPTION

Stop capturing audio data. Note that the audio recorder is still active and consuming resources, so if you are finished recording you should destroy it with [al\_destroy\_audio\_recorder(3)](/al_destroy_audio_recorder/3.md).

You may still receive a few events after you call this function as the device flushes the buffer.

If you restart the recorder, it will begin recording at the beginning of the next fragment buffer.

## SINCE

5\.1.1

*\[Unstable API\]:* The API may need a slight redesign.
