1al_create_voice(3)                                          al_create_voice(3)
2
3
4

NAME

6       al_create_voice - Allegro 5 API
7

SYNOPSIS

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

DESCRIPTION

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
21       If  a mixer is attached to the voice, the mixer will handle the conver‐
22       sion of all its input streams to the voice format  and  care  does  not
23       have  to  be taken for this.  However if you access the voice directly,
24       make sure to not rely on the parameters passed to  this  function,  but
25       instead query the returned voice for the actual settings.
26

SEE ALSO

28       al_destroy_voice(3)
29
30
31
32Allegro reference manual                                    al_create_voice(3)
Impressum