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