mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-12 06:27:12 +03:00
Bell catchup
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
#include "BaseCodec.h"
|
||||
|
||||
#include "AudioContainer.h" // for AudioContainer
|
||||
#include "CodecType.h" // for bell
|
||||
|
||||
using namespace bell;
|
||||
|
||||
@@ -23,10 +22,7 @@ uint8_t* BaseCodec::decode(AudioContainer* container, uint32_t& outLen) {
|
||||
|
||||
availableBytes = lastSampleLen;
|
||||
auto* result = decode((uint8_t*)data, availableBytes, outLen);
|
||||
if (result == nullptr) {
|
||||
container->consumeBytes(1);
|
||||
} else {
|
||||
container->consumeBytes(lastSampleLen - availableBytes);
|
||||
}
|
||||
container->consumeBytes(lastSampleLen - availableBytes);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user