Rename the SDL backend to SDL2.

This distinction is needed because we'll be doing an SDL3 backend in the
future.
This commit is contained in:
David Reid
2026-01-03 13:50:48 +10:00
parent 23c3277754
commit 3df99ce51d
5 changed files with 111 additions and 105 deletions
+8 -8
View File
@@ -1,32 +1,32 @@
/*
The SDL backend does not require any user data, nor configs. Configs are provided here in case
The SDL2 backend does not require any user data, nor configs. Configs are provided here in case
they are needed in the future, however you can safely pass in NULL when setting up your context
and device configs.
*/
#ifndef miniaudio_backend_sdl_h
#define miniaudio_backend_sdl_h
#ifndef miniaudio_backend_sdl2_h
#define miniaudio_backend_sdl2_h
#ifdef __cplusplus
extern "C" {
#endif
extern ma_device_backend_vtable* ma_device_backend_sdl;
extern ma_device_backend_vtable* ma_device_backend_sdl2;
typedef struct
{
int _unused;
} ma_context_config_sdl;
} ma_context_config_sdl2;
MA_API ma_context_config_sdl ma_context_config_sdl_init(void);
MA_API ma_context_config_sdl2 ma_context_config_sdl2_init(void);
typedef struct
{
int _unused;
} ma_device_config_sdl;
} ma_device_config_sdl2;
MA_API ma_device_config_sdl ma_device_config_sdl_init(void);
MA_API ma_device_config_sdl2 ma_device_config_sdl2_init(void);
#ifdef __cplusplus
}