mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-21 10:19:04 +02: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
@@ -218,7 +218,8 @@ public:
|
||||
|
||||
while (bgQueue.size() < (size_t)(len * 2)) {
|
||||
int outBytes = 0;
|
||||
decoder_->Decode(wave_.raw_data + raw_offset_, wave_.raw_bytes_per_frame, (uint8_t *)buffer_, &outBytes);
|
||||
int inbytesConsumed = 0;
|
||||
decoder_->Decode(wave_.raw_data + raw_offset_, wave_.raw_bytes_per_frame, &inbytesConsumed, (uint8_t *)buffer_, &outBytes);
|
||||
if (!outBytes)
|
||||
return false;
|
||||
|
||||
|
||||
Reference in new issue
Block a user