mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 16:54:03 +02:00
Add getter functions for backend vtables.
This commit is contained in:
@@ -685,6 +685,11 @@ ma_device_backend_vtable* ma_device_backend_sdl2 = &ma_gDeviceBackendVTable_SDL2
|
||||
ma_device_backend_vtable* ma_device_backend_sdl2 = NULL;
|
||||
#endif /* MA_HAS_SDL2 */
|
||||
|
||||
MA_API ma_device_backend_vtable* ma_sdl2_get_vtable(void)
|
||||
{
|
||||
return ma_device_backend_sdl2;
|
||||
}
|
||||
|
||||
|
||||
MA_API ma_context_config_sdl2 ma_context_config_sdl2_init(void)
|
||||
{
|
||||
|
||||
@@ -10,9 +10,6 @@ and device configs.
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern ma_device_backend_vtable* ma_device_backend_sdl2;
|
||||
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int _unused;
|
||||
@@ -28,6 +25,10 @@ typedef struct
|
||||
|
||||
MA_API ma_device_config_sdl2 ma_device_config_sdl2_init(void);
|
||||
|
||||
|
||||
extern ma_device_backend_vtable* ma_device_backend_sdl2;
|
||||
MA_API ma_device_backend_vtable* ma_sdl2_get_vtable(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user