al_get_sample_channels(3)
π NAME π
al_get_sample_channels β Allegro 5 API, bestie. This is the page for the function that gives you the channel configuration of a sample, straight from the Allegro 5 API manual. Slay.
β¨ SYNOPSIS β¨
First, include this header, no cap:
#include <allegro5/allegro_audio.h>
Then the function signature is literally:
ALLEGRO_CHANNEL_CONF al_get_sample_channels(const ALLEGRO_SAMPLE *spl)
π DESCRIPTION π
Okay so al_get_sample_channels returns the channel configuration of the sample. That's the whole vibe. It's giving "just hand over the channel config, no drama" π
. The return type is ALLEGRO_CHANNEL_CONF, and the argument is const ALLEGRO_SAMPLE *spl.
π¦ SEE ALSO π¦
ALLEGRO_CHANNEL_CONF(3)al_get_sample_depth(3)al_get_sample_frequency(3)al_get_sample_length(3)al_get_sample_data(3)
Byeee π«Ά β this page is from the Allegro reference manual, that's the source/version, periodt. The date? Not shown here, so we're not making one up, ngl πβ¨.
π¦ 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