Scroll to navigation

ALLEGRO_SAMPLE(3alleg5) Allegro reference manual() ALLEGRO_SAMPLE(3alleg5) Allegro reference manual()

NAME

ALLEGRO_SAMPLE - Allegro 5 API

SYNOPSIS

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

DESCRIPTION

An ALLEGRO_SAMPLE object stores the data necessary for playing pre-defined digital audio. It holds information pertaining to data length, frequency, channel configuration, etc. You can have an ALLEGRO_SAMPLE object playing multiple times simultaneously. The object holds a user-specified PCM data buffer, of the format the object is created with.

SEE ALSO

ALLEGRO_SAMPLE_INSTANCE(3alleg5)