1al_get_sample(3) al_get_sample(3)
2
3
4
6 al_get_sample - Allegro 5 API
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). However,
18 the sample buffer of the returned ALLEGRO_SAMPLE will be the same as
19 the one that was used to create the sample (passed to al_create_sam‐
20 ple(3)). You can use al_get_sample_data(3) on the return value to
21 retrieve and compare it.
22
24 al_set_sample(3)
25
26
27
28Allegro reference manual al_get_sample(3)