Skip to content

Commit

Permalink
tune av api
Browse files Browse the repository at this point in the history
  • Loading branch information
yury committed Nov 29, 2024
1 parent 6ce1792 commit 690e668
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cidre/src/av/audio/mixing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ pub trait StereoMixing {
fn set_pan(&mut self, value: f32);
}

define_obj_type!(pub MixingDestination(ns::Id));
define_obj_type!(
#[doc(alias = "AVAudioMixingDestination")]
pub MixingDestination(ns::Id)
);

impl MixingDestination {
#[objc::msg_send(connectionPoint)]
Expand All @@ -31,5 +34,5 @@ pub trait Mixing: StereoMixing {
fn volume(&self) -> f32;

#[objc::msg_send(setVolume:)]
fn set_volume(&self, value: f32);
fn set_volume(&mut self, value: f32);
}

0 comments on commit 690e668

Please sign in to comment.