SDL_Libretro
SDL3-power libretro frontend.
Loading...
Searching...
No Matches
Macros | Functions
SDL_libretro_audio.h File Reference

SDL_libretro - audio subsystem. More...

Go to the source code of this file.

Macros

#define SDL_LIBRETRO_AUDIO_DEFAULT_LATENCY_MS   100
 The threshold of audio latency in milliseconds.
 
#define SDL_LIBRETRO_AUDIO_DEFAULT_SAMPLE_RATE   48000
 Fallback rate used when a core reports no audio sample rate (<= 0).
 
#define SDL_LIBRETRO_AUDIO_DRC_MAX_DELTA   0.005
 The amount to push the DRC to correct audio pitch.
 
#define SDL_LIBRETRO_MIC_DEFAULT_RATE   44100
 The default sample rate for recording microphone input.
 

Functions

void SDL_Libretro_SetAudioLatency (SDL_Libretro *lr, unsigned latencyMs)
 Set the desired minimum audio latency for the audio stream.
 

Detailed Description

SDL_libretro - audio subsystem.

Uses SDL3's push model. The device stream is opened with a NULL callback and samples are pushed directly via SDL_PutAudioStreamData().

Definition in file SDL_libretro_audio.h.

Macro Definition Documentation

◆ SDL_LIBRETRO_AUDIO_DEFAULT_LATENCY_MS

#define SDL_LIBRETRO_AUDIO_DEFAULT_LATENCY_MS   100

The threshold of audio latency in milliseconds.

See also
SDL_Libretro_GetAudioLatency()
SDL_Libretro_SetAudioLatency()

Definition at line 19 of file SDL_libretro_audio.h.

◆ SDL_LIBRETRO_AUDIO_DRC_MAX_DELTA

#define SDL_LIBRETRO_AUDIO_DRC_MAX_DELTA   0.005

The amount to push the DRC to correct audio pitch.

The default is good for general use smoothing. Increase when expecting stutter.

See also
SDL_Libretro_UpdateDRC()

Definition at line 37 of file SDL_libretro_audio.h.

◆ SDL_LIBRETRO_MIC_DEFAULT_RATE

#define SDL_LIBRETRO_MIC_DEFAULT_RATE   44100

The default sample rate for recording microphone input.

See also
SDL_Libretro_MicOpen()

Definition at line 352 of file SDL_libretro_audio.h.