Rename Buffer::iter_mut() to iter_samples()

Since there's also an iter_blocks(). This is consistent with the new
Block method.
This commit is contained in:
Robbert van der Helm
2022-03-09 20:11:37 +01:00
parent fcd0522a33
commit 3c5aff1ec6
5 changed files with 8 additions and 8 deletions

View File

@@ -125,7 +125,7 @@ impl Plugin for Gain {
buffer: &mut Buffer,
_context: &mut impl ProcessContext,
) -> ProcessStatus {
for channel_samples in buffer.iter_mut() {
for channel_samples in buffer.iter_samples() {
// Smoothing is optionally built into the parameters themselves
let gain = self.params.gain.smoothed.next();