Sound_Sample(3)
π Sound_Sample(3) β the literal heart of SDL_sound π
Welcome to the Sound_Sample(3) page from the Library Functions Manual, bestie. Buckle up, because this struct is kind of a big deal. π«Ά
πΈ NAME πΈ
Sound_Sample β represents sound data in the process of being decoded. Itβs giving βaudio in motion,β fr fr. π§β¨
β¨ SYNOPSIS β¨
#include <SDL_sound.h>
π Data Fields π
void * opaqueconst Sound_DecoderInfo * decoderSound_AudioInfo desiredSound_AudioInfo actualvoid * bufferUint32 buffer_sizeSound_SampleFlags flags
π« Detailed Description π«
Okay so bestie, the Sound_Sample structure is the heart of SDL_sound. π
It holds information about a source of sound data as it is being decoded. Like, itβs literally the main character of the decoding process. π
EVERY FIELD IN THIS IS READ-ONLY. Please use the API functions to change them. No cap, do not just go touching fields directly. That is not the vibe. π«π
π Field Documentation π
Sound_AudioInfo Sound_Sample::actual
The actual audio format of the sample. What it really is, not just what you wished for. β¨
void* Sound_Sample::buffer
Decoded sound data lands in here. Itβs the little landing pad for your audio bytes. π¬πΆ
Uint32 Sound_Sample::buffer_size
Current size of (buffer), in bytes (Uint8). Size matters, bestie. ππ
const Sound_DecoderInfo* Sound_Sample::decoder
Decoder used for this sample. The decoder that showed up and did the work. π§ββοΈ
Sound_AudioInfo Sound_Sample::desired
Desired audio format for conversion. This is the format youβre asking for. π
Sound_SampleFlags Sound_Sample::flags
Flags relating to this sample. Little flaggy details, iykyk. π©β¨
void* Sound_Sample::opaque
Internal use only. Donβt touch. Seriously. Hands off. π ββοΈ π
π«Ά Author π«Ά
Generated automatically by Doxygen for SDL_sound from the source code. Iconic, automated, and honestly kind of slay. π€π
π
Thatβs the whole page β SDL_sound, Version 1.0.1, Sound_Sample(3) β bye bestie, go decode something cute! π¦πΈ
π¦ where this page comes from
- fedora 43: SDL_sound-devel 1.0.3-42.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: SDL_sound-devel 1.0.3-42.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: SDL_sound-devel 1.0.3-44.fc44 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: SDL_sound-devel 1.0.3-44.fc44 Β· LicenseRef-Callaway-LGPLv2+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms