OpenTTD Source 20250206-master-g6089ed8059
sdl2_s.cpp File Reference

Playing sound via SDL2. More...

#include "../stdafx.h"
#include "../mixer.h"
#include "sdl_s.h"
#include <SDL.h>
#include "../safeguards.h"

Go to the source code of this file.

Functions

static void CDECL fill_sound_buffer (void *, Uint8 *stream, int len)
 Callback that fills the sound buffer.
 

Variables

static FSoundDriver_SDL iFSoundDriver_SDL
 Factory for the SDL sound driver.
 

Detailed Description

Playing sound via SDL2.

Definition in file sdl2_s.cpp.

Function Documentation

◆ fill_sound_buffer()

static void CDECL fill_sound_buffer ( void *  ,
Uint8 *  stream,
int  len 
)
static

Callback that fills the sound buffer.

Parameters
streamThe stream to put data into.
lenThe length of the stream in bytes.

Definition at line 28 of file sdl2_s.cpp.

Referenced by SoundDriver_SDL::Start().

Variable Documentation

◆ iFSoundDriver_SDL

FSoundDriver_SDL iFSoundDriver_SDL
static

Factory for the SDL sound driver.

Definition at line 21 of file sdl2_s.cpp.