pitchscreen: Fix unbalanced pcmbuf_set_low_latency when connecting USB

Change-Id: I73652ef27c24485faefe16c678406d78b0d6e0fd
This commit is contained in:
Christian Soffke 2026-04-18 14:28:34 +02:00 committed by Solomon Peachy
parent 9000614224
commit 088b3345fb

View file

@ -1109,7 +1109,6 @@ int gui_syncpitchscreen_run(void)
rb->yield(); rb->yield();
} }
//rb->pcmbuf_set_low_latency(false);
//pop_current_activity(); //pop_current_activity();
/* Clean up */ /* Clean up */
@ -1216,6 +1215,7 @@ enum plugin_status plugin_start(const void* parameter)
* -s=90 sets speed to 90% if timestrech is enabled * -s=90 sets speed to 90% if timestrech is enabled
* -k=true -k1 enables time stretch -k0 -kf-kn disables * -k=true -k1 enables time stretch -k0 -kf-kn disables
*/ */
enum plugin_status ret = PLUGIN_OK;
bool gui = false; bool gui = false;
rb->pcmbuf_set_low_latency(true); rb->pcmbuf_set_low_latency(true);
@ -1275,7 +1275,7 @@ enum plugin_status plugin_start(const void* parameter)
} }
if (gui && gui_syncpitchscreen_run() == 1) if (gui && gui_syncpitchscreen_run() == 1)
return PLUGIN_USB_CONNECTED; ret = PLUGIN_USB_CONNECTED;
rb->pcmbuf_set_low_latency(false); rb->pcmbuf_set_low_latency(false);
return PLUGIN_OK; return ret;
} }