perf(rodio): reduce periodic control polling

This commit is contained in:
vicrodh committed 2026-01-13 01:17:35 -06:00
1 parent bdd6776188
commit c68c943a95
1 file changed
+1 -1
+1 -1
View File
@@ -128,7 +128,7 @@ impl Sink {
.skippable()
.stoppable()
// if you change the duration update the docs for try_seek!
.periodic_access(Duration::from_millis(50), move |src| {
.periodic_access(Duration::from_millis(100), move |src| {
if controls.stopped.load(Ordering::SeqCst) {
src.stop();
*controls.position.lock().unwrap() = Duration::ZERO;