objc2_avf_audio/generated/
AVAudioUnitTimeEffect.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))]
21 #[derive(Debug, PartialEq, Eq, Hash)]
22 #[cfg(all(feature = "AVAudioNode", feature = "AVAudioUnit"))]
23 pub struct AVAudioUnitTimeEffect;
24);
25
26#[cfg(all(feature = "AVAudioNode", feature = "AVAudioUnit"))]
27unsafe impl NSObjectProtocol for AVAudioUnitTimeEffect {}
28
29#[cfg(all(feature = "AVAudioNode", feature = "AVAudioUnit"))]
30impl AVAudioUnitTimeEffect {
31 extern_methods!(
32 #[cfg(feature = "objc2-audio-toolbox")]
33 #[cfg(not(target_os = "watchos"))]
34 #[unsafe(method(initWithAudioComponentDescription:))]
41 #[unsafe(method_family = init)]
42 pub unsafe fn initWithAudioComponentDescription(
43 this: Allocated<Self>,
44 audio_component_description: AudioComponentDescription,
45 ) -> Retained<Self>;
46
47 #[unsafe(method(bypass))]
49 #[unsafe(method_family = none)]
50 pub unsafe fn bypass(&self) -> bool;
51
52 #[unsafe(method(setBypass:))]
54 #[unsafe(method_family = none)]
55 pub unsafe fn setBypass(&self, bypass: bool);
56 );
57}
58
59#[cfg(all(feature = "AVAudioNode", feature = "AVAudioUnit"))]
61impl AVAudioUnitTimeEffect {
62 extern_methods!(
63 #[unsafe(method(init))]
64 #[unsafe(method_family = init)]
65 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
66
67 #[unsafe(method(new))]
68 #[unsafe(method_family = new)]
69 pub unsafe fn new() -> Retained<Self>;
70 );
71}