ALLEGRO_SAMPLE
typedef struct ALLEGRO_SAMPLE ALLEGRO_SAMPLE;
Introduced in 5.0.0
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
Examples: ex_acodec, ex_acodec_multi, ex_audio_props, ex_audio_simple, ex_haiku, ex_kcm_direct, ex_mixer_chain
Most helpful discussions:
- Having Trouble with exit(1) - Stalling Program
- Finding zero crossings in a sample (to eliminate clicking)
- Screen is cleared and a new one appears Allegro5 in C?
- Allegro GTK3 and Mac
- Game Crashing and I'm not sure why?
- Sound
- Creating executable files in Visual Studio
- Audio seems overly complicated :(
- al_destroy_sample crash
- Sounds not playing repeating properly
Other recent discussions:
- Bitmap behind mappy map
- How to play video in allegro 5
- globally available functions and resources
- al_create_sample create double lengthen sample
- Audio addon: pause sample
- Successful but silent audio playback
- Creating new samples using std::vector
- How to get raw sample frequencies
- [A5] troubles with Ogg
- Enemy AI Movement