objc2_avf_audio/generated/
AVAudioUnitEffect.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-audio-toolbox")]
7#[cfg(not(target_os = "watchos"))]
8use objc2_audio_toolbox::*;
9
10use crate::*;
11
12extern_class!(
13 #[unsafe(super(AVAudioUnit, AVAudioNode, NSObject))]
25 #[derive(Debug, PartialEq, Eq, Hash)]
26 #[cfg(all(feature = "AVAudioNode", feature = "AVAudioUnit"))]
27 pub struct AVAudioUnitEffect;
28);
29
30#[cfg(all(feature = "AVAudioNode", feature = "AVAudioUnit"))]
31unsafe impl NSObjectProtocol for AVAudioUnitEffect {}
32
33#[cfg(all(feature = "AVAudioNode", feature = "AVAudioUnit"))]
34impl AVAudioUnitEffect {
35 extern_methods!(
36 #[cfg(feature = "objc2-audio-toolbox")]
37 #[cfg(not(target_os = "watchos"))]
38 #[unsafe(method(initWithAudioComponentDescription:))]
50 #[unsafe(method_family = init)]
51 pub unsafe fn initWithAudioComponentDescription(
52 this: Allocated<Self>,
53 audio_component_description: AudioComponentDescription,
54 ) -> Retained<Self>;
55
56 #[unsafe(method(bypass))]
58 #[unsafe(method_family = none)]
59 pub unsafe fn bypass(&self) -> bool;
60
61 #[unsafe(method(setBypass:))]
63 #[unsafe(method_family = none)]
64 pub unsafe fn setBypass(&self, bypass: bool);
65 );
66}
67
68#[cfg(all(feature = "AVAudioNode", feature = "AVAudioUnit"))]
70impl AVAudioUnitEffect {
71 extern_methods!(
72 #[unsafe(method(init))]
73 #[unsafe(method_family = init)]
74 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
75
76 #[unsafe(method(new))]
77 #[unsafe(method_family = new)]
78 pub unsafe fn new() -> Retained<Self>;
79 );
80}