switch to rust 2024

This commit is contained in:
🪞👃🪞 2025-08-16 07:36:07 +03:00
parent 74b497cf3a
commit f87a5c14f9
7 changed files with 12 additions and 12 deletions

View file

@ -8,8 +8,8 @@ audio!(|self: Lv2, _client, scope|{
audio_ins,
audio_outs,
lv2_features,
ref mut lv2_instance,
ref mut lv2_input_buffer,
lv2_instance,
lv2_input_buffer,
..
} = self;
let urid = lv2_features.midi_urid();

View file

@ -81,7 +81,7 @@ impl Sampler {
/// Write playing voices to output buffer
fn populate_output_buffer (&mut self, frames: usize) {
let Sampler { ref mut buffer, voices, output_gain, mixing_mode, .. } = self;
let Sampler { buffer, voices, output_gain, mixing_mode, .. } = self;
let channel_count = buffer.len();
match mixing_mode {
MixingMode::Summing => voices.write().unwrap().retain_mut(|voice|{
@ -95,7 +95,7 @@ impl Sampler {
/// Write output buffer to output ports.
fn write_output_buffer (&mut self, scope: &ProcessScope) {
let Sampler { ref mut audio_outs, buffer, .. } = self;
let Sampler { audio_outs, buffer, .. } = self;
for (i, port) in audio_outs.iter_mut().enumerate() {
let buffer = &buffer[i];
for (i, value) in port.port_mut().as_mut_slice(scope).iter_mut().enumerate() {

View file

@ -91,7 +91,7 @@ impl Sequencer {
return true
}
// If there's a currently playing clip, output notes from it to buffer:
if let Some(ref clip) = clip {
if let Some(clip) = clip {
// Source clip from which the MIDI events will be taken.
let clip = clip.read().unwrap();
// Clip with zero length is not processed