SDL_HINT_AUD...APP_ICON_NAME(3)
β¨ NAME β¨
SDL_HINT_AUDIO_DEVICE_APP_ICON_NAME β bestie, this is the hint that lets you say "hey, here's my app's icon name" for an audio device. π
(it lives in the SDL3 FUNCTIONS manual, iykyk)
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_hints.h>
#define SDL_HINT_AUDIO_DEVICE_APP_ICON_NAME "SDL_AUDIO_DEVICE_APP_ICON_NAME"
π DESCRIPTION π
okay so listen. Some audio backends β like Pulseaudio and Pipewire β let you set an XDG icon name for your app. And among other things? That icon might literally show up in a system control panel where the user can adjust the volume on specific audio streams, instead of being stuck with one giant master volume slider. it's giving β¨granular controlβ¨.
β οΈ Not me reminding you: this is unrelated to the icon the windowing system uses, which may be set with SDL_SetWindowIcon (or via a desktop file on Wayland). two totally different vibes, don't mix them up π
If you set this to "" or just leave it unset, SDL will use a reasonable default β "applications-games" β which is likely to be installed already. no stress, she's got you π«Ά
The relevant XDG icon specs live here if you wanna read the lore:
https://specifications.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.htmlhttps://specifications.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html
π¨ IMPORTANT: this hint should be set before an audio device is opened. Timing is everything, bestie. set it late and it simply will not hit. π
π AVAILABILITY π
This hint is available since SDL 3.2.0. β
and that's the whole page, no cap π§π β signed off by Simple Directmedia Layer, SDL 3.4.18, periodt. π
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms