mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 16:54:03 +02:00
Fix a crash in ma_audio_buffer_read_pcm_frames().
This commit is contained in:
+2
-1
@@ -43555,7 +43555,7 @@ MA_API ma_uint64 ma_audio_buffer_read_pcm_frames(ma_audio_buffer* pAudioBuffer,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (pFramesOut != NULL) {
|
if (pFramesOut != NULL) {
|
||||||
ma_copy_pcm_frames(pFramesOut, ma_offset_ptr(pAudioBuffer->pData, pAudioBuffer->cursor * ma_get_bytes_per_frame(pAudioBuffer->format, pAudioBuffer->channels)), frameCount, pAudioBuffer->format, pAudioBuffer->channels);
|
ma_copy_pcm_frames(pFramesOut, ma_offset_ptr(pAudioBuffer->pData, pAudioBuffer->cursor * ma_get_bytes_per_frame(pAudioBuffer->format, pAudioBuffer->channels)), framesToRead, pAudioBuffer->format, pAudioBuffer->channels);
|
||||||
}
|
}
|
||||||
|
|
||||||
totalFramesRead += framesToRead;
|
totalFramesRead += framesToRead;
|
||||||
@@ -64685,6 +64685,7 @@ The following miscellaneous changes have also been made.
|
|||||||
REVISION HISTORY
|
REVISION HISTORY
|
||||||
================
|
================
|
||||||
v0.10.30 - TBD
|
v0.10.30 - TBD
|
||||||
|
- Fix a crash in ma_audio_buffer_read_pcm_frames().
|
||||||
- Update spinlock APIs to take a volatile parameter as input.
|
- Update spinlock APIs to take a volatile parameter as input.
|
||||||
- Silence some unused parameter warnings.
|
- Silence some unused parameter warnings.
|
||||||
- Fix a warning on GCC when compiling as C++.
|
- Fix a warning on GCC when compiling as C++.
|
||||||
|
|||||||
Reference in New Issue
Block a user