Skip to content

Commit f8ea7ac

Browse files
torokati44Herschel
authored andcommitted
web/audio: nit: Rename probation_time to probation_elapsed everywhere
1 parent d77cf83 commit f8ea7ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web/src/audio.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub struct WebAudioBackend {
2222
/// When the last submitted buffer is expected to play out completely, in seconds.
2323
time: Arc<RwLock<f64>>,
2424
/// 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>>,
2626
log_subscriber: Arc<Layered<WASMLayer, Registry>>,
2727
}
2828

@@ -55,7 +55,7 @@ impl WebAudioBackend {
5555
buffer_size: Arc::new(RwLock::new(Self::INITIAL_BUFFER_SIZE)),
5656
buffers: Vec::with_capacity(2),
5757
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)),
5959
log_subscriber,
6060
};
6161

@@ -130,7 +130,7 @@ impl Buffer {
130130
audio_node: None,
131131
on_ended_handler: Closure::new(|| {}),
132132
time: audio.time.clone(),
133-
probation_elapsed: audio.probation_time.clone(),
133+
probation_elapsed: audio.probation_elapsed.clone(),
134134
log_subscriber: audio.log_subscriber.clone(),
135135
}));
136136

0 commit comments

Comments
 (0)