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 (in Hz), sample format and  channel  con‐
17       figuration  are used as a hint to what kind of data will be sent to the
18       voice.  However, the underlying sound driver is free to use  non-match‐
19       ing  values.   For  example,  it  may be the native format of the sound
20       hardware.
21
22       If a mixer is attached to the voice, the mixer will handle the  conver‐
23       sion  of  all  its  input streams to the voice format and care does not
24       have to be taken for this.  However if you access the  voice  directly,
25       make  sure  to  not rely on the parameters passed to this function, but
26       instead query the returned voice for the actual settings.
27

SEE ALSO

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