@@ -22,7 +22,7 @@ pub struct WebAudioBackend {
22
22
/// When the last submitted buffer is expected to play out completely, in seconds.
23
23
time : Arc < RwLock < f64 > > ,
24
24
/// For how many seconds were we able to continuously fill the next buffer "at a sufficiently early time".
25
- probation_time : Arc < RwLock < f32 > > ,
25
+ probation_elapsed : Arc < RwLock < f32 > > ,
26
26
log_subscriber : Arc < Layered < WASMLayer , Registry > > ,
27
27
}
28
28
@@ -55,7 +55,7 @@ impl WebAudioBackend {
55
55
buffer_size : Arc :: new ( RwLock :: new ( Self :: INITIAL_BUFFER_SIZE ) ) ,
56
56
buffers : Vec :: with_capacity ( 2 ) ,
57
57
time : Arc :: new ( RwLock :: new ( 0.0 ) ) ,
58
- probation_time : Arc :: new ( RwLock :: new ( 0.0 ) ) ,
58
+ probation_elapsed : Arc :: new ( RwLock :: new ( 0.0 ) ) ,
59
59
log_subscriber,
60
60
} ;
61
61
@@ -130,7 +130,7 @@ impl Buffer {
130
130
audio_node : None ,
131
131
on_ended_handler : Closure :: new ( || { } ) ,
132
132
time : audio. time . clone ( ) ,
133
- probation_elapsed : audio. probation_time . clone ( ) ,
133
+ probation_elapsed : audio. probation_elapsed . clone ( ) ,
134
134
log_subscriber : audio. log_subscriber . clone ( ) ,
135
135
} ) ) ;
136
136
0 commit comments