Commit 8c52072f authored by David Reid's avatar David Reid

Remove const qualifiers from decoding backend vtable arrays.

parent b6184fa2
...@@ -54,7 +54,7 @@ int main(int argc, char** argv) ...@@ -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 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. 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_libvorbis,
ma_decoding_backend_libopus ma_decoding_backend_libopus
......
...@@ -29,7 +29,7 @@ int main(int argc, char** argv) ...@@ -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 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. 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_libvorbis,
ma_decoding_backend_libopus ma_decoding_backend_libopus
......
...@@ -528,9 +528,9 @@ static ma_decoding_backend_vtable ma_gDecodingBackendVTable_libopus = ...@@ -528,9 +528,9 @@ static ma_decoding_backend_vtable ma_gDecodingBackendVTable_libopus =
NULL, /* onInitMemory() */ NULL, /* onInitMemory() */
ma_decoding_backend_uninit__libopus 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 #else
const ma_decoding_backend_vtable* ma_decoding_backend_libopus = NULL; ma_decoding_backend_vtable* ma_decoding_backend_libopus = NULL;
#endif #endif
#endif /* miniaudio_libopus_c */ #endif /* miniaudio_libopus_c */
...@@ -34,7 +34,7 @@ MA_API ma_result ma_libopus_get_cursor_in_pcm_frames(ma_libopus* pOpus, ma_uint6 ...@@ -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); 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. */ /* 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 #ifdef __cplusplus
} }
......
...@@ -566,9 +566,9 @@ static ma_decoding_backend_vtable ma_gDecodingBackendVTable_libvorbis = ...@@ -566,9 +566,9 @@ static ma_decoding_backend_vtable ma_gDecodingBackendVTable_libvorbis =
NULL, /* onInitMemory() */ NULL, /* onInitMemory() */
ma_decoding_backend_uninit__libvorbis 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 #else
const ma_decoding_backend_vtable* ma_decoding_backend_libvorbis = NULL; ma_decoding_backend_vtable* ma_decoding_backend_libvorbis = NULL;
#endif #endif
#endif /* miniaudio_libvorbis_c */ #endif /* miniaudio_libvorbis_c */
...@@ -34,7 +34,7 @@ MA_API ma_result ma_libvorbis_get_cursor_in_pcm_frames(ma_libvorbis* pVorbis, ma ...@@ -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); 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. */ /* 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 #ifdef __cplusplus
} }
......
...@@ -9959,7 +9959,7 @@ typedef struct ...@@ -9959,7 +9959,7 @@ typedef struct
ma_allocation_callbacks allocationCallbacks; ma_allocation_callbacks allocationCallbacks;
ma_encoding_format encodingFormat; 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. */ 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; ma_uint32 customBackendCount;
void* pCustomBackendUserData; void* pCustomBackendUserData;
} ma_decoder_config; } ma_decoder_config;
...@@ -10486,7 +10486,7 @@ typedef struct ...@@ -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 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_uint32 flags;
ma_vfs* pVFS; /* Can be NULL in which case defaults will be used. */ 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; ma_uint32 customDecodingBackendCount;
void* pCustomDecodingBackendUserData; void* pCustomDecodingBackendUserData;
} ma_resource_manager_config; } ma_resource_manager_config;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment