al_get_haptic_effect_duration(3alleg5)

๐Ÿ“ฆ
version 5.2.11.3 ยท 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

โœจ al_get_haptic_effect_duration โœจ

okay bestie, welcome to the Allegro 5 reference manual ๐Ÿ’– this one's from the allegro5 section and it's about haptics, aka the rumble-grumble controller go brrr department ๐ŸŽฎโœจ


๐ŸŒธ NAME ๐ŸŒธ

al_get_haptic_effect_duration โ€” Allegro 5 API ๐Ÿซถ


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

#include <allegro5/allegro.h>

double al_get_haptic_effect_duration(ALLEGRO_HAPTIC_EFFECT * effect)

๐Ÿ’… DESCRIPTION ๐Ÿ’…

so basically this function returns the estimated duration, in seconds, of a single loop of the haptic effect you hand it. that's it, that's the whole vibe โœจ

โš ๏ธ but listen โ€” the effect's effect.replay field must have been filled in correctly before using this function. no half-baked replay info, bestie, or this is not gonna give you what you want ๐Ÿ˜ญ

โญ SINCE โญ

5.1.9 ๐Ÿ‘‘

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

so yeah, this one's still lowkey in its experimental era ๐Ÿงš โ€” the features it exposes aren't supported everywhere across all platforms, so it might get simplified later. they're literally waiting on feedback from users (that's you, bestie, go tell them how it's going ๐Ÿ’Œ).


and that's the whole page! this was the Allegro reference manual ๐ŸŽ€, dropping the al_get_haptic_effect_duration(3alleg5) knowledge straight from version 5.1.9. periodt. ๐Ÿ’–โœจ๐Ÿฆ‹

๐Ÿ“ฆ where this page comes from