detect_digi_driver(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

πŸŽ€ NAME πŸŽ€

detect_digi_driver β€” this is the detect_digi_driver(3) page from the Allegro manual, and it detects whether the specified digital sound device is available. It's part of the Allegro game programming library, bestie. πŸ’–

✨ SYNOPSIS ✨

#include <allegro.h>

int detect_digi_driver(int driver_id);

πŸ’… DESCRIPTION πŸ’…

Okay so detect_digi_driver() checks if the digital sound device you're pointing at with driver_id is actually available. This function must be called _before_ install_sound(). Like, before before. Not after. Not during. Before. 🫢

πŸ”₯ RETURN VALUE πŸ”₯

It returns the maximum number of voices that the driver can provide, or zero if the hardware is not present. So if you get 0, that's a no-hardware situation, bestie 😭. If you get a number, that's the max voices the driver can give. Slay.

🌈 SEE ALSO 🌈


kisses from the Allegro manual, version 4.4.3 β€” detect_digi_driver(3) out πŸ’…βœ¨

πŸ“¦ where this page comes from