SDL_HINT_AUDIO_DISK_INPUT_FILE(3)
π SDL_HINT_AUDIO_DISK_INPUT_FILE(3) π
okay bestie, welcome to the SDL3 FUNCTIONS section of the manual, we're doing a deep dive on one very specific little hint and honestly? she's niche but she matters. π
β¨ NAME β¨
SDL_HINT_AUDIO_DISK_INPUT_FILE β the hint that tells SDL which file to read from when you're recording audio using the disk audio driver. that's it, that's the whole job, and she does it flawlessly. π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_hints.h>
#define SDL_HINT_AUDIO_DISK_INPUT_FILE "SDL_AUDIO_DISK_INPUT_FILE"
like yes, it's a #define, it's a string, it's iconic, it's exactly what it looks like. no notes. π¦
π DESCRIPTION π
so here's the tea, bestie. this hint defaults to:
"sdlaudio-in.raw"
like, if you don't set it, that's the filename it's gonna reach for. no cap. π
β οΈ and listen β this hint should be set before an audio device is opened. set it early, set it first, set it like your life depends on it, because once that device is open it's too late and the vibe is locked in. π
π AVAILABILITY π
this hint is available since SDL 3.2.0. so if you're on anything older... girl, upgrade. π
Simple Directmedia Layer β’ SDL 3.4.18 β that's the source, the version, and the whole energy of this page. mwah, hope this helped, go forth and record your audio, ily, bye bestie!! π«Άβ¨πππ¦
π¦ 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