DOKK / manpages / debian 12 / allegro5-doc / ALLEGRO_AUDIO_RECORDER_EVENT.3alleg5.en
ALLEGRO_AUDIO_RECORDER_EVENT(3alleg5) ALLEGRO_AUDIO_RECORDER_EVENT(3alleg5)

ALLEGRO_AUDIO_RECORDER_EVENT - Allegro 5 API

#include <allegro5/allegro_audio.h>
typedef struct ALLEGRO_AUDIO_RECORDER_EVENT ALLEGRO_AUDIO_RECORDER_EVENT;
    

Structure that holds the audio recorder event data. Every event type will contain:

.source: pointer to the audio recorder

The following will be available depending on the event type:

.buffer: pointer to buffer containing the audio samples
.samples: number of samples (not bytes) that are available

Since 5.1.1

al_get_audio_recorder_event(3alleg5)

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

Allegro reference manual