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.

RELATED TO ALLEGRO_SAMPLE…

ALLEGRO_SAMPLE_INSTANCE(3alleg5)