al_get_haptic_gain(3)

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

al_get_haptic_gain(3) πŸ’…

okay bestie, welcome to the Library Functions Manual β€” this page is all about al_get_haptic_gain, and it's giving Allegro 5 API main character energy. πŸ¦‹


πŸ’– NAME πŸ’–

al_get_haptic_gain β€” Allegro 5 API. That's the whole name, no cap. ✨

🌈 SYNOPSIS 🌈

#include <allegro5/allegro.h>

double al_get_haptic_gain(ALLEGRO_HAPTIC *hap)

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so al_get_haptic_gain returns the current gain of the device. Gain is much like volume for sound: it's as if every effect's intensity is multiplied by it. The gain is a value between 0.0 and 1.0. πŸŽ€

It only works correctly if al_get_haptic_capabilities(3) returns a value that has ALLEGRO_HAPTIC_GAIN(3)ALLEGRO_HAPTIC_CONSTANTS(3) set. If this is not set, the function will simply return 1.0 and all effects will be played without any gain influence. fr fr, that's the whole vibe check. πŸ’…

🌸 SINCE 🌸

5.1.8 β€” iconic since then, bestie. 🫢

[Unstable API]: Perhaps could be simplified due to limited support for all the exposed features across all of the platforms. Awaiting feedback from users.

signed off by the Allegro reference manual, page al_get_haptic_gain(3) β€” and the original footer doesn't list a date, so that's all the footer lore πŸ˜­πŸ’–

πŸ“¦ 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