mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-10 21:47:04 +03:00
opus & vorbis tweaks
This commit is contained in:
@@ -219,9 +219,14 @@ static decode_state opus_decompress(void) {
|
|||||||
|
|
||||||
} else if (n == 0) {
|
} else if (n == 0) {
|
||||||
|
|
||||||
LOG_INFO("end of stream");
|
if (stream.state <= DISCONNECT) {
|
||||||
UNLOCK_O_direct;
|
LOG_INFO("partial decode");
|
||||||
return DECODE_COMPLETE;
|
UNLOCK_O_direct;
|
||||||
|
UNLOCK_S;
|
||||||
|
return DECODE_COMPLETE;
|
||||||
|
} else {
|
||||||
|
LOG_INFO("no frame decoded");
|
||||||
|
}
|
||||||
|
|
||||||
} else if (n == OP_HOLE) {
|
} else if (n == OP_HOLE) {
|
||||||
|
|
||||||
|
|||||||
@@ -266,9 +266,14 @@ static decode_state vorbis_decode(void) {
|
|||||||
|
|
||||||
} else if (n == 0) {
|
} else if (n == 0) {
|
||||||
|
|
||||||
LOG_INFO("end of stream");
|
if (stream.state <= DISCONNECT) {
|
||||||
UNLOCK_O_direct;
|
LOG_INFO("partial decode");
|
||||||
return DECODE_COMPLETE;
|
UNLOCK_O_direct;
|
||||||
|
UNLOCK_S;
|
||||||
|
return DECODE_COMPLETE;
|
||||||
|
} else {
|
||||||
|
LOG_INFO("no frame decoded");
|
||||||
|
}
|
||||||
|
|
||||||
} else if (n == OV_HOLE) {
|
} else if (n == OV_HOLE) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user