SDL_sound  1.0.1
Data Fields
Sound_Sample Struct Reference

Represents sound data in the process of being decoded. More...

#include <SDL_sound.h>

Data Fields

void * opaque
 
const Sound_DecoderInfodecoder
 
Sound_AudioInfo desired
 
Sound_AudioInfo actual
 
void * buffer
 
Uint32 buffer_size
 
Sound_SampleFlags flags
 

Detailed Description

Represents sound data in the process of being decoded.

The Sound_Sample structure is the heart of SDL_sound. This holds information about a source of sound data as it is being decoded. EVERY FIELD IN THIS IS READ-ONLY. Please use the API functions to change them.

Field Documentation

◆ actual

Sound_AudioInfo Sound_Sample::actual

Actual audio format of sample.

◆ buffer

void* Sound_Sample::buffer

Decoded sound data lands in here.

◆ buffer_size

Uint32 Sound_Sample::buffer_size

Current size of (buffer), in bytes (Uint8).

◆ decoder

const Sound_DecoderInfo* Sound_Sample::decoder

Decoder used for this sample.

◆ desired

Sound_AudioInfo Sound_Sample::desired

Desired audio format for conversion.

◆ flags

Sound_SampleFlags Sound_Sample::flags

Flags relating to this sample.

◆ opaque

void* Sound_Sample::opaque

Internal use only. Don't touch.


The documentation for this struct was generated from the following file: