1al_reserve_samples(3)      Library Functions Manual      al_reserve_samples(3)
2
3
4

NAME

6       al_reserve_samples
7

SYNOPSIS

9              #include <allegro5/allegro_audio.h>
10
11              bool al_reserve_samples(int reserve_samples)
12

DESCRIPTION

14       Reserves  a  number  of sample instances, attaching them to the default
15       mixer.  If no default mixer is set when this function is  called,  then
16       it  will  automatically  create  a  voice with an attached mixer, which
17       becomes the default mixer.  This  diagram  illustrates  the  structures
18       that are set up:
19
20                                            sample instance 1
21                                          / sample instance 2
22              voice <-- default mixer <---         .
23                                          \        .
24                                            sample instance N
25
26       Returns true on success, false on error.  al_install_audio(3) must have
27       been called first.
28

SEE ALSO

30       al_set_default_mixer(3), al_play_sample(3)
31
32
33
34Allegro reference manual                                 al_reserve_samples(3)
Impressum