We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fe764b commit 9b1e30cCopy full SHA for 9b1e30c
src/node/dynamics_compressor.rs
@@ -241,7 +241,7 @@ impl DynamicsCompressorNode {
241
}
242
243
pub fn reduction(&self) -> f32 {
244
- self.reduction.load(Ordering::SeqCst)
+ self.reduction.load(Ordering::Relaxed)
245
246
247
@@ -386,7 +386,7 @@ impl AudioProcessor for DynamicsCompressorRenderer {
386
// update prev_detector_value for next block
387
self.prev_detector_value = prev_detector_value;
388
// update reduction shared w/ main thread
389
- self.reduction.store(reduction_gain, Ordering::SeqCst);
+ self.reduction.store(reduction_gain, Ordering::Relaxed);
390
391
// store input in delay line
392
self.ring_buffer[self.ring_index] = input;
0 commit comments