al_set_audio_stream_pan(3)
π NAME π
okay bestie, welcome to al_set_audio_stream_pan(3) from the Library Functions Manual! This is the Allegro 5 API page for setting the pan on an audio stream. Slay. π
β¨ SYNOPSIS β¨
#include <allegro5/allegro_audio.h>
bool al_set_audio_stream_pan(ALLEGRO_AUDIO_STREAM *stream, float val)
π§ DESCRIPTION π§
So you wanna set the pan value on an audio stream? iconic. Hereβs the vibe check:
-1.0means the stream plays only through the left speaker π+1.0means it plays only through the right speaker π0.0means the sample is centre balanced βοΈ
Thereβs also a special value, ALLEGRO_AUDIO_PAN_NONE(3), which disables panning and plays the stream at its original level. Heads up: this will be louder than a pan value of 0.0. no cap, thatβs just how it is π₯
It returns true on success and false on failure. And it will fail if the audio stream is attached directly to a voice. periodt. π
bestie, if your stream is attached straight to a voice, this function is gonna fail β so donβt come for it when it does π
π¦ SEE ALSO π¦
xoxo, the Allegro reference manual signing off from the al_set_audio_stream_pan(3) page π«Άβ¨
π¦ 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