---
name: "ALLEGRO_AUDIO_EVENT_TYPE"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/ALLEGRO_AUDIO_EVENT_TYPE/3alleg5"
---

# ALLEGRO\_AUDIO\_EVENT\_TYPE(3alleg5)

Allegro 5 API

## NAME

ALLEGRO\_AUDIO\_EVENT\_TYPE - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro_audio.h>
  enum ALLEGRO_AUDIO_EVENT_TYPE
  ```

## DESCRIPTION

Events sent by al\_get\_audio\_stream\_event\_source(3alleg5) or al\_get\_audio\_recorder\_event\_source(3alleg5).

### ALLEGRO\_EVENT\_AUDIO\_STREAM\_FRAGMENT

Sent when a stream fragment is ready to be filled in. See al\_get\_audio\_stream\_fragment(3alleg5).

### ALLEGRO\_EVENT\_AUDIO\_STREAM\_FINISHED

Sent when a stream is finished.

### ALLEGRO\_EVENT\_AUDIO\_RECORDER\_FRAGMENT

Sent after a user-specified number of samples have been recorded. Convert this to ALLEGRO\_AUDIO\_RECORDER\_EVENT(3alleg5) via al\_get\_audio\_recorder\_event(3alleg5).

You must always check the values for the buffer and samples as they are not guaranteed to be exactly what was originally specified.

## SINCE

5\.1.1

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