1al_attach_sample_instance_toL_ivboriacrey(3F)unctioanls_aMtatnaucahl_sample_instance_to_voice(3)
2
3
4

NAME

6       al_attach_sample_instance_to_voice
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 to a voice, and allows it to play.  The sample's vol‐
16       ume and loop mode will be ignored, and it must have the same  frequency
17       and depth (including signed-ness) as the voice.  This function may fail
18       if the selected driver doesn't support preloading sample data.
19
20       At this time, we don't recommend attaching samples directly to  voices.
21       Use a mixer in between.
22
23       Returns true on success, false on failure.
24
25
26
27Allegro reference manual                 al_attach_sample_instance_to_voice(3)
Impressum