@@ -390,8 +390,8 @@ impl AudioContext {
390
390
// First, pause rendering via a control message
391
391
let ( sender, receiver) = oneshot:: channel ( ) ;
392
392
let notify = OneshotNotify :: Async ( sender) ;
393
- let suspend_msg = ControlMessage :: Suspend { notify } ;
394
- self . base . send_control_msg ( suspend_msg ) ;
393
+ self . base
394
+ . send_control_msg ( ControlMessage :: Suspend { notify } ) ;
395
395
396
396
// Wait for the render thread to have processed the suspend message.
397
397
// The AudioContextState will be updated by the render thread.
@@ -417,8 +417,8 @@ impl AudioContext {
417
417
// Then, ask to resume rendering via a control message
418
418
let ( sender, receiver) = oneshot:: channel ( ) ;
419
419
let notify = OneshotNotify :: Async ( sender) ;
420
- let suspend_msg = ControlMessage :: Resume { notify } ;
421
- self . base . send_control_msg ( suspend_msg ) ;
420
+ self . base
421
+ . send_control_msg ( ControlMessage :: Resume { notify } ) ;
422
422
423
423
// Wait for the render thread to have processed the resume message
424
424
// The AudioContextState will be updated by the render thread.
@@ -437,8 +437,7 @@ impl AudioContext {
437
437
// First, stop rendering via a control message
438
438
let ( sender, receiver) = oneshot:: channel ( ) ;
439
439
let notify = OneshotNotify :: Async ( sender) ;
440
- let suspend_msg = ControlMessage :: Close { notify } ;
441
- self . base . send_control_msg ( suspend_msg) ;
440
+ self . base . send_control_msg ( ControlMessage :: Close { notify } ) ;
442
441
443
442
// Wait for the render thread to have processed the suspend message.
444
443
// The AudioContextState will be updated by the render thread.
@@ -471,8 +470,8 @@ impl AudioContext {
471
470
// First, pause rendering via a control message
472
471
let ( sender, receiver) = crossbeam_channel:: bounded ( 0 ) ;
473
472
let notify = OneshotNotify :: Sync ( sender) ;
474
- let suspend_msg = ControlMessage :: Suspend { notify } ;
475
- self . base . send_control_msg ( suspend_msg ) ;
473
+ self . base
474
+ . send_control_msg ( ControlMessage :: Suspend { notify } ) ;
476
475
477
476
// Wait for the render thread to have processed the suspend message.
478
477
// The AudioContextState will be updated by the render thread.
@@ -501,8 +500,8 @@ impl AudioContext {
501
500
// Then, ask to resume rendering via a control message
502
501
let ( sender, receiver) = crossbeam_channel:: bounded ( 0 ) ;
503
502
let notify = OneshotNotify :: Sync ( sender) ;
504
- let suspend_msg = ControlMessage :: Resume { notify } ;
505
- self . base . send_control_msg ( suspend_msg ) ;
503
+ self . base
504
+ . send_control_msg ( ControlMessage :: Resume { notify } ) ;
506
505
507
506
// Wait for the render thread to have processed the resume message
508
507
// The AudioContextState will be updated by the render thread.
@@ -524,8 +523,7 @@ impl AudioContext {
524
523
// First, stop rendering via a control message
525
524
let ( sender, receiver) = crossbeam_channel:: bounded ( 0 ) ;
526
525
let notify = OneshotNotify :: Sync ( sender) ;
527
- let suspend_msg = ControlMessage :: Close { notify } ;
528
- self . base . send_control_msg ( suspend_msg) ;
526
+ self . base . send_control_msg ( ControlMessage :: Close { notify } ) ;
529
527
530
528
// Wait for the render thread to have processed the suspend message.
531
529
// The AudioContextState will be updated by the render thread.
0 commit comments