Commit abb81fe9 authored by David Reid's avatar David Reid

Fix a warning in miniaudio_libvorbis.

parent 8ad250cc
...@@ -143,15 +143,16 @@ static ma_result ma_libvorbis_init_internal(const ma_decoding_backend_config* pC ...@@ -143,15 +143,16 @@ static ma_result ma_libvorbis_init_internal(const ma_decoding_backend_config* pC
ma_data_source_uninit(&pVorbis->ds); ma_data_source_uninit(&pVorbis->ds);
return MA_OUT_OF_MEMORY; return MA_OUT_OF_MEMORY;
} }
return MA_SUCCESS;
} }
#else #else
{ {
/* libvorbis is disabled. */ /* libvorbis is disabled. */
(void)pAllocationCallbacks;
return MA_NOT_IMPLEMENTED; return MA_NOT_IMPLEMENTED;
} }
#endif #endif
return MA_SUCCESS;
} }
MA_API ma_result ma_libvorbis_init(ma_read_proc onRead, ma_seek_proc onSeek, ma_tell_proc onTell, void* pReadSeekTellUserData, const ma_decoding_backend_config* pConfig, const ma_allocation_callbacks* pAllocationCallbacks, ma_libvorbis* pVorbis) MA_API ma_result ma_libvorbis_init(ma_read_proc onRead, ma_seek_proc onSeek, ma_tell_proc onTell, void* pReadSeekTellUserData, const ma_decoding_backend_config* pConfig, const ma_allocation_callbacks* pAllocationCallbacks, ma_libvorbis* pVorbis)
......
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