1al_create_voice(3) Library Functions Manual al_create_voice(3)
2
3
4
6 al_create_voice
7
9 #include <allegro5/allegro_audio.h>
10
11 ALLEGRO_VOICE *al_create_voice(unsigned int freq,
12 ALLEGRO_AUDIO_DEPTH depth, ALLEGRO_CHANNEL_CONF chan_conf)
13
15 Creates a voice structure and allocates a voice from the digital sound
16 driver. The passed frequency, sample format and channel configuration
17 are used as a hint to what kind of data will be sent to the voice.
18 However, the underlying sound driver is free to use non-matching val‐
19 ues. For example it may be the native format of the sound hardware.
20 If you attach a mixer to the voice, the mixer will convert from the
21 mixer's format to the voice format and you do not have to care about
22 this. If you access the voice directly, make sure to not rely on the
23 parameters passed to this function, but query the returned voice for
24 the actual settings.
25
27 al_destroy_voice(3)
28
29
30
31Allegro reference manual al_create_voice(3)