diff --git a/examples/custom_decoder.c b/examples/custom_decoder.c index e218945a..d73576b6 100644 --- a/examples/custom_decoder.c +++ b/examples/custom_decoder.c @@ -54,7 +54,7 @@ int main(int argc, char** argv) Add your custom backend vtables here. The order in the array defines the order of priority. The vtables will be passed in via the decoder config. */ - const ma_decoding_backend_vtable* pCustomBackendVTables[] = + ma_decoding_backend_vtable* pCustomBackendVTables[] = { ma_decoding_backend_libvorbis, ma_decoding_backend_libopus diff --git a/examples/custom_decoder_engine.c b/examples/custom_decoder_engine.c index df452cc1..5938c76e 100644 --- a/examples/custom_decoder_engine.c +++ b/examples/custom_decoder_engine.c @@ -29,7 +29,7 @@ int main(int argc, char** argv) Add your custom backend vtables here. The order in the array defines the order of priority. The vtables will be passed in to the resource manager config. */ - const ma_decoding_backend_vtable* pCustomBackendVTables[] = + ma_decoding_backend_vtable* pCustomBackendVTables[] = { ma_decoding_backend_libvorbis, ma_decoding_backend_libopus diff --git a/extras/decoders/libopus/miniaudio_libopus.c b/extras/decoders/libopus/miniaudio_libopus.c index 61c1d19b..ae7887ff 100644 --- a/extras/decoders/libopus/miniaudio_libopus.c +++ b/extras/decoders/libopus/miniaudio_libopus.c @@ -528,9 +528,9 @@ static ma_decoding_backend_vtable ma_gDecodingBackendVTable_libopus = NULL, /* onInitMemory() */ ma_decoding_backend_uninit__libopus }; -const ma_decoding_backend_vtable* ma_decoding_backend_libopus = &ma_gDecodingBackendVTable_libopus; +ma_decoding_backend_vtable* ma_decoding_backend_libopus = &ma_gDecodingBackendVTable_libopus; #else -const ma_decoding_backend_vtable* ma_decoding_backend_libopus = NULL; +ma_decoding_backend_vtable* ma_decoding_backend_libopus = NULL; #endif #endif /* miniaudio_libopus_c */ diff --git a/extras/decoders/libopus/miniaudio_libopus.h b/extras/decoders/libopus/miniaudio_libopus.h index f8d005c5..80dce280 100644 --- a/extras/decoders/libopus/miniaudio_libopus.h +++ b/extras/decoders/libopus/miniaudio_libopus.h @@ -34,7 +34,7 @@ MA_API ma_result ma_libopus_get_cursor_in_pcm_frames(ma_libopus* pOpus, ma_uint6 MA_API ma_result ma_libopus_get_length_in_pcm_frames(ma_libopus* pOpus, ma_uint64* pLength); /* Decoding backend vtable. This is what you'll plug into ma_decoder_config.pBackendVTables. No user data required. */ -extern const ma_decoding_backend_vtable* ma_decoding_backend_libopus; +extern ma_decoding_backend_vtable* ma_decoding_backend_libopus; #ifdef __cplusplus } diff --git a/extras/decoders/libvorbis/miniaudio_libvorbis.c b/extras/decoders/libvorbis/miniaudio_libvorbis.c index 8535b9e7..653b4879 100644 --- a/extras/decoders/libvorbis/miniaudio_libvorbis.c +++ b/extras/decoders/libvorbis/miniaudio_libvorbis.c @@ -566,9 +566,9 @@ static ma_decoding_backend_vtable ma_gDecodingBackendVTable_libvorbis = NULL, /* onInitMemory() */ ma_decoding_backend_uninit__libvorbis }; -const ma_decoding_backend_vtable* ma_decoding_backend_libvorbis = &ma_gDecodingBackendVTable_libvorbis; +ma_decoding_backend_vtable* ma_decoding_backend_libvorbis = &ma_gDecodingBackendVTable_libvorbis; #else -const ma_decoding_backend_vtable* ma_decoding_backend_libvorbis = NULL; +ma_decoding_backend_vtable* ma_decoding_backend_libvorbis = NULL; #endif #endif /* miniaudio_libvorbis_c */ diff --git a/extras/decoders/libvorbis/miniaudio_libvorbis.h b/extras/decoders/libvorbis/miniaudio_libvorbis.h index 24994fbf..6699266c 100644 --- a/extras/decoders/libvorbis/miniaudio_libvorbis.h +++ b/extras/decoders/libvorbis/miniaudio_libvorbis.h @@ -34,7 +34,7 @@ MA_API ma_result ma_libvorbis_get_cursor_in_pcm_frames(ma_libvorbis* pVorbis, ma MA_API ma_result ma_libvorbis_get_length_in_pcm_frames(ma_libvorbis* pVorbis, ma_uint64* pLength); /* Decoding backend vtable. This is what you'll plug into ma_decoder_config.pBackendVTables. No user data required. */ -extern const ma_decoding_backend_vtable* ma_decoding_backend_libvorbis; +extern ma_decoding_backend_vtable* ma_decoding_backend_libvorbis; #ifdef __cplusplus } diff --git a/miniaudio.h b/miniaudio.h index 6cc626df..a31d9df8 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -9959,7 +9959,7 @@ typedef struct ma_allocation_callbacks allocationCallbacks; ma_encoding_format encodingFormat; ma_uint32 seekPointCount; /* When set to > 0, specifies the number of seek points to use for the generation of a seek table. Not all decoding backends support this. */ - const ma_decoding_backend_vtable* const* ppCustomBackendVTables; + ma_decoding_backend_vtable** ppCustomBackendVTables; ma_uint32 customBackendCount; void* pCustomBackendUserData; } ma_decoder_config; @@ -10486,7 +10486,7 @@ typedef struct ma_uint32 jobQueueCapacity; /* The maximum number of jobs that can fit in the queue at a time. Defaults to MA_JOB_TYPE_RESOURCE_MANAGER_QUEUE_CAPACITY. Cannot be zero. */ ma_uint32 flags; ma_vfs* pVFS; /* Can be NULL in which case defaults will be used. */ - const ma_decoding_backend_vtable* const* ppCustomDecodingBackendVTables; + ma_decoding_backend_vtable** ppCustomDecodingBackendVTables; ma_uint32 customDecodingBackendCount; void* pCustomDecodingBackendUserData; } ma_resource_manager_config;