1al_attach_audio_stream_to_voLiicber(a3r)y FunctionsaMla_nautatlach_audio_stream_to_voice(3)
2
3
4

NAME

6       al_attach_audio_stream_to_voice
7

SYNOPSIS

9              #include <allegro5/allegro_audio.h>
10
11              bool al_attach_audio_stream_to_voice(ALLEGRO_AUDIO_STREAM *stream,
12                 ALLEGRO_VOICE *voice)
13

DESCRIPTION

15       Attaches  an audio stream to a voice.  The same rules as al_attach_sam‐
16       ple_instance_to_voice(3) apply.  This may fail if the driver can't cre‐
17       ate a voice with the buffer count and buffer size the stream uses.
18
19       An  audio  stream  attached directly to a voice has a number of limita‐
20       tions.  The audio stream plays immediately and cannot be stopped.   The
21       stream  position,  speed,  gain,  panning,  cannot be changed.  At this
22       time, we don't recommend attaching audio streams  directly  to  voices.
23       Use a mixer in between.
24
25       Returns true on success, false on failure.
26
27
28
29Allegro reference manual                    al_attach_audio_stream_to_voice(3)
Impressum