From 96c5a9a0f5d19568effdbb976ef2a26a49d85279 Mon Sep 17 00:00:00 2001 From: Squareys Date: Sun, 15 Nov 2015 01:12:25 +0100 Subject: [PATCH] Audio: Add hrtfSpecifier() to Context for querying HRTF name. Signed-off-by: Squareys --- src/Magnum/Audio/Context.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Magnum/Audio/Context.h b/src/Magnum/Audio/Context.h index 8fdb16e73..f1809a943 100644 --- a/src/Magnum/Audio/Context.h +++ b/src/Magnum/Audio/Context.h @@ -173,6 +173,18 @@ class MAGNUM_AUDIO_EXPORT Context { */ HrtfStatus hrtfStatus() const; + /** + * @brief Hrtf specifier + * + * Name of the hrtf being used. + * + * @see @fn_al{GetString} with @def_alc{HRTF_SPECIFIER_SOFT} + * @requires_al_extension @alc_extension{SOFT,HRTF} + */ + std::string hrtfSpecifier() const { + return alcGetString(_device, ALC_HRTF_SPECIFIER_SOFT); + } + /** * @brief Vendor string *