mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Add getter functions for backend vtables.
This commit is contained in:
@@ -555,4 +555,9 @@ ma_decoding_backend_vtable* ma_decoding_backend_libopus = &ma_gDecodingBackendVT
|
||||
ma_decoding_backend_vtable* ma_decoding_backend_libopus = NULL;
|
||||
#endif
|
||||
|
||||
MA_API ma_decoding_backend_vtable* ma_libopus_get_vtable(void)
|
||||
{
|
||||
return ma_decoding_backend_libopus;
|
||||
}
|
||||
|
||||
#endif /* miniaudio_libopus_c */
|
||||
|
||||
@@ -35,6 +35,7 @@ MA_API ma_result ma_libopus_get_length_in_pcm_frames(ma_libopus* pOpus, ma_uint6
|
||||
|
||||
/* Decoding backend vtable. This is what you'll plug into ma_decoder_config.pBackendVTables. No user data required. */
|
||||
extern ma_decoding_backend_vtable* ma_decoding_backend_libopus;
|
||||
MA_API ma_decoding_backend_vtable* ma_libopus_get_vtable(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -609,4 +609,9 @@ ma_decoding_backend_vtable* ma_decoding_backend_libvorbis = &ma_gDecodingBackend
|
||||
ma_decoding_backend_vtable* ma_decoding_backend_libvorbis = NULL;
|
||||
#endif
|
||||
|
||||
MA_API ma_decoding_backend_vtable* ma_libvorbis_get_vtable(void)
|
||||
{
|
||||
return ma_decoding_backend_libvorbis;
|
||||
}
|
||||
|
||||
#endif /* miniaudio_libvorbis_c */
|
||||
|
||||
@@ -35,6 +35,7 @@ MA_API ma_result ma_libvorbis_get_length_in_pcm_frames(ma_libvorbis* pVorbis, ma
|
||||
|
||||
/* Decoding backend vtable. This is what you'll plug into ma_decoder_config.pBackendVTables. No user data required. */
|
||||
extern ma_decoding_backend_vtable* ma_decoding_backend_libvorbis;
|
||||
MA_API ma_decoding_backend_vtable* ma_libvorbis_get_vtable(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user