Fix miniaudio_libvorbis.h compilation as c++

This commit is contained in:
Edoardo Lolletti
2025-02-17 23:03:06 +01:00
committed by David Reid
parent a4d462e39e
commit 4b4349af52
+1 -1
View File
@@ -328,7 +328,7 @@ MA_API ma_result ma_libvorbis_read_pcm_frames(ma_libvorbis* pVorbis, void* pFram
} }
} }
} else { } else {
libvorbisResult = ov_read(&pVorbis->vf, ma_offset_pcm_frames_ptr(pFramesOut, totalFramesRead, format, channels), framesToRead * ma_get_bytes_per_frame(format, channels), 0, 2, 1, NULL); libvorbisResult = ov_read(&pVorbis->vf, (char*)ma_offset_pcm_frames_ptr(pFramesOut, totalFramesRead, format, channels), framesToRead * ma_get_bytes_per_frame(format, channels), 0, 2, 1, NULL);
if (libvorbisResult < 0) { if (libvorbisResult < 0) {
result = MA_ERROR; /* Error while decoding. */ result = MA_ERROR; /* Error while decoding. */
break; break;