mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 01:33:45 +01:00
Improve the AudioDecoder API to avoid having to call a function to get the bytes consumed
This commit is contained in:
1 parent
45936e8826
commit
5ed77b58ca
8 files changed
+34
-43
No files matched your search
@@ -1077,7 +1077,8 @@ int MediaEngine::getAudioSamples(u32 bufferPtr) {
|
||||
m_audioContext->SetChannels(1);
|
||||
}
|
||||
|
||||
if (!m_audioContext->Decode(audioFrame, frameSize, buffer, &outbytes)) {
|
||||
int inbytesConsumed = 0;
|
||||
if (!m_audioContext->Decode(audioFrame, frameSize, &inbytesConsumed, buffer, &outbytes)) {
|
||||
ERROR_LOG(ME, "Audio (%s) decode failed during video playback", GetCodecName(m_audioType));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user