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
16       instance's gain and loop mode will be ignored, and  it  must  have  the
17       same frequency, channel configuration and depth (including signed-ness)
18       as the voice.  This function may fail if the  selected  driver  doesn't
19       support 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