1al_attach_sample_instance_to_voice(3)    al_attach_sample_instance_to_voice(3)
2
3
4

NAME

6       al_attach_sample_instance_to_voice - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro_audio.h>
10
11              bool al_attach_sample_instance_to_voice(ALLEGRO_SAMPLE_INSTANCE *spl,
12                 ALLEGRO_VOICE *voice)
13

DESCRIPTION

15       Attaches  a sample instance to a voice, and allows it to play.  The in‐
16       stance's gain and loop mode will be ignored, and it must have the  same
17       frequency,  channel  configuration and depth (including signed-ness) as
18       the voice.  This function may fail if the selected driver doesn't  sup‐
19       port preloading sample data.
20
21       At this time, we don't recommend attaching sample instances directly to
22       voices.  Use a mixer inbetween.
23
24       Returns true on success, false on failure.
25

SEE ALSO

27       al_detach_voice(3)
28
29
30
31Allegro reference manual                 al_attach_sample_instance_to_voice(3)
Impressum