1ALLEGRO_AUDIO_PAN_NONE(3) ALLEGRO_AUDIO_PAN_NONE(3)
2
3
4
6 ALLEGRO_AUDIO_PAN_NONE - Allegro 5 API
7
9 #include <allegro5/allegro_audio.h>
10
11 #define ALLEGRO_AUDIO_PAN_NONE (-1000.0f)
12
14 A special value for the pan property of sample instances and audio
15 streams. Use this value to disable panning on sample instances and au‐
16 dio streams, and play them without attentuation implied by panning sup‐
17 port.
18
19 ALLEGRO_AUDIO_PAN_NONE is different from a pan value of 0.0 (centered)
20 because, when panning is enabled, we try to maintain a constant sound
21 power level as a sample is panned from left to right. A sound coming
22 out of one speaker should sound as loud as it does when split over two
23 speakers. As a consequence, a sample with pan value 0.0 will be 3 dB
24 softer than the original level.
25
26 (Please correct us if this is wrong.)
27
28
29
30Allegro reference manual ALLEGRO_AUDIO_PAN_NONE(3)