Skip to content

Commit

Permalink
Fix build, fix some lifetimes in audio methods compat
Browse files Browse the repository at this point in the history
  • Loading branch information
prokopyl committed Mar 1, 2024
1 parent 5577a1f commit 1921821
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions host/src/bundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -162,7 +162,7 @@ impl PluginBundle {
pub unsafe fn load_from_symbol_in_library<P: AsRef<std::ffi::OsStr>>(
path: P,
library: libloading::Library,
symbol_name: &CStr,
symbol_name: &core::ffi::CStr,
) -> Result<Self, PluginBundleError> {
use crate::bundle::library::PluginEntryLibrary;

Expand Down
6 changes: 3 additions & 3 deletions host/src/process/audio_buffers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();

Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 1921821

Please sign in to comment.