1al_get_sample(3) Library Functions Manual al_get_sample(3)
2
3
4
6 al_get_sample
7
9 #include <allegro5/allegro_audio.h>
10
11 ALLEGRO_SAMPLE *al_get_sample(ALLEGRO_SAMPLE_INSTANCE *spl)
12
14 Return the sample data that the sample instance plays.
15
16 Note this returns a pointer to an internal structure, not the ALLE‐
17 GRO_SAMPLE(3) that you may have passed to al_set_sample(3). You may,
18 however, check which sample buffer is being played by the sample
19 instance with al_get_sample_data(3), and so on.
20
21
22
23Allegro reference manual al_get_sample(3)