From 192182145998103911682468bf4a68888e2c274d Mon Sep 17 00:00:00 2001 From: Adrien Prokopowicz Date: Fri, 1 Mar 2024 07:37:39 +0100 Subject: [PATCH] Fix build, fix some lifetimes in audio methods compat --- host/src/bundle.rs | 4 ++-- host/src/process/audio_buffers.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/host/src/bundle.rs b/host/src/bundle.rs index 13291915..7cd6fb60 100644 --- a/host/src/bundle.rs +++ b/host/src/bundle.rs @@ -43,7 +43,7 @@ //! information about standard search paths and the general discovery process. use std::error::Error; -use std::ffi::{CStr, NulError}; +use std::ffi::NulError; use std::fmt::{Display, Formatter}; use std::ptr::NonNull; @@ -162,7 +162,7 @@ impl PluginBundle { pub unsafe fn load_from_symbol_in_library>( path: P, library: libloading::Library, - symbol_name: &CStr, + symbol_name: &core::ffi::CStr, ) -> Result { use crate::bundle::library::PluginEntryLibrary; diff --git a/host/src/process/audio_buffers.rs b/host/src/process/audio_buffers.rs index 9ce1d99c..857e3834 100644 --- a/host/src/process/audio_buffers.rs +++ b/host/src/process/audio_buffers.rs @@ -81,7 +81,7 @@ unsafe impl Sync for AudioPorts {} impl AudioPorts { #[cfg(feature = "clack-plugin")] pub fn from_plugin_audio_mut<'a>( - audio: &'a mut clack_plugin::prelude::Audio<'a>, + audio: &'a mut clack_plugin::prelude::Audio, ) -> (InputAudioBuffers<'a>, OutputAudioBuffers<'a>) { let frames_count = audio.frames_count(); let (ins, outs) = audio.raw_buffers(); @@ -396,7 +396,7 @@ impl<'a> InputAudioBuffers<'a> { } #[cfg(feature = "clack-plugin")] - pub fn from_plugin_audio(audio: &'a clack_plugin::prelude::Audio<'a>) -> InputAudioBuffers<'a> { + pub fn from_plugin_audio(audio: &clack_plugin::prelude::Audio<'a>) -> InputAudioBuffers<'a> { let frames_count = audio.frames_count(); let ins = audio.raw_input_buffers(); @@ -466,7 +466,7 @@ impl<'a> OutputAudioBuffers<'a> { #[cfg(feature = "clack-plugin")] pub fn from_plugin_audio_mut( - audio: &'a mut clack_plugin::prelude::Audio<'a>, + audio: &'a mut clack_plugin::prelude::Audio, ) -> OutputAudioBuffers<'a> { let frames_count = audio.frames_count(); let outs = audio.raw_output_buffers();