|
OpenTTD Source 20261112-master-gbcbec5e63f
|
Playing sound via SDL3. More...
#include "../stdafx.h"#include "../mixer.h"#include "sdl_s.h"#include <SDL3/SDL_audio.h>#include <SDL3/SDL_init.h>#include "../safeguards.h"Go to the source code of this file.
Functions | |
| void | FillAudioStream (void *, SDL_AudioStream *stream, int bytes_requested, int) |
| Callback that fills the sound buffer. | |
Variables | |
| static FSoundDriver_SDL | iFSoundDriver_SDL |
| Factory for the SDL sound driver. | |
| static SDL_AudioStream * | _sdl_audio_stream = nullptr |
| SDL audio stream. | |
Playing sound via SDL3.
Definition in file sdl3_s.cpp.
| void FillAudioStream | ( | void * | , |
| SDL_AudioStream * | stream, | ||
| int | bytes_requested, | ||
| int | ) |
Callback that fills the sound buffer.
| stream | SDL audio stream requesting more data. |
| bytes_requested | Number of additional bytes requested. |
Definition at line 32 of file sdl3_s.cpp.
Referenced by SoundDriver_SDL::Start().
|
static |
SDL audio stream.
Definition at line 25 of file sdl3_s.cpp.
Referenced by SoundDriver_SDL::Start(), and SoundDriver_SDL::Stop().
|
static |
Factory for the SDL sound driver.
Definition at line 22 of file sdl3_s.cpp.