ALLEGRO_AUDIO_PAN_NONE(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

πŸ’– ALLEGRO_AUDIO_PAN_NONE(3) πŸ’–

okay so this is from the Library Functions Manual / Allegro reference manual, and it’s literally the Allegro 5 API page for this one iconic special value. πŸ¦‹


✨ NAME ✨

ALLEGRO_AUDIO_PAN_NONE β€” Allegro 5 API πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <allegro5/allegro_audio.h>

#define ALLEGRO_AUDIO_PAN_NONE      (-1000.0f)

🌸 DESCRIPTION 🌸

So basically ALLEGRO_AUDIO_PAN_NONE is a special value for the pan property of sample instances and audio streams. Use this value to disable panning on sample instances and audio streams, and play them without attentuation implied by panning support. (Yes, the original spells it β€œattentuation” β€” keeping the vibe, bestie 😭)

ALLEGRO_AUDIO_PAN_NONE is different from a pan value of 0.0 (centered) because, when panning is enabled, we try to maintain a constant sound power level as a sample is panned from left to right. A sound coming out of one speaker should sound as loud as it does when split over two speakers. As a consequence, a sample with pan value 0.0 will be 3 dB softer than the original level. πŸ”₯

(Please correct us if this is wrong.) 🫢

source/version: Allegro reference manual Β· date: not listed on this page (the footer didn’t give us one, sorry bestie 😭) β€” bye, go vibe with your audio πŸ’œπŸŽ€

πŸ“¦ where this page comes from
  • arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms