1al_attach_audio_stream_to_voice(3) al_attach_audio_stream_to_voice(3)
2
3
4
6 al_attach_audio_stream_to_voice - Allegro 5 API
7
9 #include <allegro5/allegro_audio.h>
10
11 bool al_attach_audio_stream_to_voice(ALLEGRO_AUDIO_STREAM *stream,
12 ALLEGRO_VOICE *voice)
13
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 and panning cannot be changed. At this
22 time, we don't recommend attaching audio streams directly to voices.
23 Use a mixer inbetween.
24
25 Returns true on success, false on failure.
26
28 al_detach_voice(3)
29
30
31
32Allegro reference manual al_attach_audio_stream_to_voice(3)