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"))]
27extern_conformance!(
28 unsafe impl NSObjectProtocol for AVAudioUnitTimeEffect {}
29);
30
31#[cfg(all(feature = "AVAudioNode", feature = "AVAudioUnit"))]
32impl AVAudioUnitTimeEffect {
33 extern_methods!(
34 #[cfg(feature = "objc2-audio-toolbox")]
35 #[cfg(not(target_os = "watchos"))]
36 #[unsafe(method(initWithAudioComponentDescription:))]
43 #[unsafe(method_family = init)]
44 pub unsafe fn initWithAudioComponentDescription(
45 this: Allocated<Self>,
46 audio_component_description: AudioComponentDescription,
47 ) -> Retained<Self>;
48
49 #[unsafe(method(bypass))]
51 #[unsafe(method_family = none)]
52 pub unsafe fn bypass(&self) -> bool;
53
54 #[unsafe(method(setBypass:))]
56 #[unsafe(method_family = none)]
57 pub unsafe fn setBypass(&self, bypass: bool);
58 );
59}
60
61#[cfg(all(feature = "AVAudioNode", feature = "AVAudioUnit"))]
63impl AVAudioUnitTimeEffect {
64 extern_methods!(
65 #[unsafe(method(init))]
66 #[unsafe(method_family = init)]
67 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
68
69 #[unsafe(method(new))]
70 #[unsafe(method_family = new)]
71 pub unsafe fn new() -> Retained<Self>;
72 );
73}