mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-07 20:17:04 +03:00
fixed coexistence
This commit is contained in:
@@ -283,7 +283,7 @@ static void process_strm(u8_t *pkt, int len) {
|
||||
break;
|
||||
case 'q':
|
||||
decode_flush();
|
||||
output_flush();
|
||||
if (!output.external) output_flush();
|
||||
status.frames_played = 0;
|
||||
stream_disconnect();
|
||||
sendSTAT("STMf", 0);
|
||||
@@ -291,7 +291,7 @@ static void process_strm(u8_t *pkt, int len) {
|
||||
break;
|
||||
case 'f':
|
||||
decode_flush();
|
||||
output_flush();
|
||||
if (!output.external) output_flush();
|
||||
status.frames_played = 0;
|
||||
if (stream_disconnect()) {
|
||||
sendSTAT("STMf", 0);
|
||||
@@ -330,12 +330,6 @@ static void process_strm(u8_t *pkt, int len) {
|
||||
LOCK_O;
|
||||
output.state = jiffies ? OUTPUT_START_AT : OUTPUT_RUNNING;
|
||||
output.start_at = jiffies;
|
||||
#if EMBEDDED
|
||||
if (output.external) {
|
||||
decode_resume(output.external);
|
||||
output.external = 0;
|
||||
}
|
||||
#endif
|
||||
UNLOCK_O;
|
||||
|
||||
LOG_DEBUG("unpause at: %u now: %u", jiffies, gettime_ms());
|
||||
@@ -382,6 +376,7 @@ static void process_strm(u8_t *pkt, int len) {
|
||||
#if EMBEDDED
|
||||
if (output.external) decode_resume(output.external);
|
||||
output.external = 0;
|
||||
_buf_resize(outputbuf, output.init_size);
|
||||
#endif
|
||||
output.threshold = strm->output_threshold;
|
||||
output.next_replay_gain = unpackN(&strm->replay_gain);
|
||||
|
||||
Reference in New Issue
Block a user