perf(rodio): reduce periodic control polling
This commit is contained in:
1 parent
bdd6776188
commit
c68c943a95
1 file changed
+1
-1
Vendored
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user