22#include <SDL3_mixer/SDL_mixer.h>
24#ifdef SDL2_PLAIN_INCLUDE
29#include <SDL2/SDL_mixer.h>
50#ifdef FREECIV_MSWINDOWS
271 log_error(
"Error calling Mix_OpenAudio");
300 sz_strlcpy(
self.descr,
"Simple DirectMedia Library (SDL) mixer plugin");
void audio_add_plugin(struct audio_plugin *p)
void(* audio_finished_callback)(void)
static void sdl_audio_shutdown(struct audio_plugin *self)
void audio_sdl_init(void)
static void sdl_audio_wait(void)
static void quit_sdl_audio(void)
static void sdl_audio_set_volume(double volume)
static bool sdl_audio_play(const char *const tag, const char *const fullpath, bool repeat, audio_finished_callback cb)
static void sdl_audio_resume(void)
static struct sample samples[MIX_CHANNELS]
static bool init_sdl_audio(void)
static double sdl_audio_volume
static bool sdl_audio_init(struct audio_plugin *self)
static void sdl_audio_pause(void)
static void sdl_audio_stop(void)
static double sdl_audio_get_volume(void)
static struct ai_type * self
#define log_verbose(message,...)
#define log_debug(message,...)
#define log_error(message,...)
#define sz_strlcpy(dest, src)