al_get_num_au...output_devices(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

🌸 NAME 🌸

okay so bestie, welcome to the al_get_num_audio_output_devices(3alleg5) page from the Allegro reference manual πŸ’–. This is al_get_num_audio_output_devices β€” the Allegro 5 API function that counts your audio output devices, no cap.

✨ SYNOPSIS ✨

#include <allegro5/allegro_audio.h>

int al_get_num_audio_output_devices()

πŸŽ€ DESCRIPTION πŸŽ€

This function gets the number of available audio output devices on the system. That's the whole main character moment: it's giving how many audio outputs are we working with? 🎧✨

πŸ¦‹ SINCE πŸ¦‹

This has been around since 5.2.8, periodt. πŸ’…

Also, for unsupported drivers it will return -1. So if you see a -1, that's not a device count, that's the driver saying "not supported, bestie" πŸ˜­πŸ’€.

That's the Allegro reference manual, 3alleg5, signing off πŸ’…βœ¨ (source/version: Allegro reference manual, 3alleg5; date: not listed on this page, but the vibe is timeless 🌈).

πŸ“¦ where this page comes from