1al_reserve_samples(3)                                    al_reserve_samples(3)
2
3
4

NAME

6       al_reserve_samples - Allegro 5 API
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  create one and attach it to the default voice.  If no default
17       voice has been set, it, too, will be created.
18
19       This diagram illustrates the structures that are set up:
20
21                                                    sample instance 1
22                                                  / sample instance 2
23              default voice <-- default mixer <---         .
24                                                  \        .
25                                                    sample instance N
26
27       Returns true on success, false on error.  al_install_audio(3) must have
28       been called first.
29

SEE ALSO

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