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"))]
31extern_conformance!(
32 unsafe impl NSObjectProtocol for AVAudioUnitEffect {}
33);
34
35#[cfg(all(feature = "AVAudioNode", feature = "AVAudioUnit"))]
36impl AVAudioUnitEffect {
37 extern_methods!(
38 #[cfg(feature = "objc2-audio-toolbox")]
39 #[cfg(not(target_os = "watchos"))]
40 #[unsafe(method(initWithAudioComponentDescription:))]
52 #[unsafe(method_family = init)]
53 pub unsafe fn initWithAudioComponentDescription(
54 this: Allocated<Self>,
55 audio_component_description: AudioComponentDescription,
56 ) -> Retained<Self>;
57
58 #[unsafe(method(bypass))]
60 #[unsafe(method_family = none)]
61 pub unsafe fn bypass(&self) -> bool;
62
63 #[unsafe(method(setBypass:))]
65 #[unsafe(method_family = none)]
66 pub unsafe fn setBypass(&self, bypass: bool);
67 );
68}
69
70#[cfg(all(feature = "AVAudioNode", feature = "AVAudioUnit"))]
72impl AVAudioUnitEffect {
73 extern_methods!(
74 #[unsafe(method(init))]
75 #[unsafe(method_family = init)]
76 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
77
78 #[unsafe(method(new))]
79 #[unsafe(method_family = new)]
80 pub unsafe fn new() -> Retained<Self>;
81 );
82}