al_set_audio_stream_pan(3)

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

πŸ’– 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.0 means the stream plays only through the left speaker πŸ’œ
  • +1.0 means it plays only through the right speaker πŸ’™
  • 0.0 means 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