1al_set_sample_instance_pan(3)                    al_set_sample_instance_pan(3)
2
3
4

NAME

6       al_set_sample_instance_pan - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro_audio.h>
10
11              bool al_set_sample_instance_pan(ALLEGRO_SAMPLE_INSTANCE *spl, float val)
12

DESCRIPTION

14       Set  the pan value on a sample instance.  A value of -1.0 means to play
15       the sample only through the left speaker; +1.0 means only  through  the
16       right speaker; 0.0 means the sample is centre balanced.  A special val‐
17       ue ALLEGRO_AUDIO_PAN_NONE(3) disables panning and plays the  sample  at
18       its original level.  This will be louder than a pan value of 0.0.
19
20              Note:  panning  samples with more than two channels doesn't work
21              yet.
22
23       Returns true on success, false on failure.  Will fail if the sample in‐
24       stance is attached directly to a voice.
25

SEE ALSO

27       al_get_sample_instance_pan(3), ALLEGRO_AUDIO_PAN_NONE(3)
28
29
30
31Allegro reference manual                         al_set_sample_instance_pan(3)
Impressum