al_reserve_samples

bool al_reserve_samples(int reserve_samples)
Introduced in 5.0.0

Reserves a number of sample instances, attaching them to the default mixer. If no default mixer is set when this function is called, then it will automatically create a voice with an attached mixer, which becomes the default mixer. This diagram illustrates the structures that are set up:

                              sample instance 1
                            / sample instance 2
voice <-- default mixer <---         .
                            \        .
                              sample instance N

Returns true on success, false on error. al_install_audio must have been called first.

See also: al_set_default_mixer, al_play_sample

Examples: ex_audio_props, ex_audio_simple, ex_haiku, ex_saw, ex_stream_seek, ex_synth


Most helpful discussions:

Other recent discussions: