Add a template for device backends.

This commit is contained in:
David Reid
2026-02-27 17:42:28 +10:00
parent bcdb37ff66
commit d94b45d058
3 changed files with 174 additions and 0 deletions
@@ -0,0 +1,33 @@
#ifndef miniaudio_backend_template_h
#define miniaudio_backend_template_h
#include "../../../miniaudio.h"
#ifdef __cplusplus
extern "C" {
#endif
extern ma_device_backend_vtable* ma_device_backend_template;
MA_API ma_device_backend_vtable* ma_template_get_vtable(void);
typedef struct
{
int _unused;
} ma_context_config_template;
MA_API ma_context_config_template ma_context_config_template_init(void);
typedef struct
{
int _unused;
} ma_device_config_template;
MA_API ma_device_config_template ma_device_config_template_init(void);
#ifdef __cplusplus
}
#endif
#endif /* miniaudio_backend_template_h */