objc2_avf_audio/generated/
AVAudioUnitDelay.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::*;
9use objc2_foundation::*;
10
11use crate::*;
12
13extern_class!(
14 #[unsafe(super(AVAudioUnitEffect, AVAudioUnit, AVAudioNode, NSObject))]
23 #[derive(Debug, PartialEq, Eq, Hash)]
24 #[cfg(all(
25 feature = "AVAudioNode",
26 feature = "AVAudioUnit",
27 feature = "AVAudioUnitEffect"
28 ))]
29 pub struct AVAudioUnitDelay;
30);
31
32#[cfg(all(
33 feature = "AVAudioNode",
34 feature = "AVAudioUnit",
35 feature = "AVAudioUnitEffect"
36))]
37extern_conformance!(
38 unsafe impl NSObjectProtocol for AVAudioUnitDelay {}
39);
40
41#[cfg(all(
42 feature = "AVAudioNode",
43 feature = "AVAudioUnit",
44 feature = "AVAudioUnitEffect"
45))]
46impl AVAudioUnitDelay {
47 extern_methods!(
48 #[unsafe(method(delayTime))]
54 #[unsafe(method_family = none)]
55 pub unsafe fn delayTime(&self) -> NSTimeInterval;
56
57 #[unsafe(method(setDelayTime:))]
59 #[unsafe(method_family = none)]
60 pub unsafe fn setDelayTime(&self, delay_time: NSTimeInterval);
61
62 #[unsafe(method(feedback))]
67 #[unsafe(method_family = none)]
68 pub unsafe fn feedback(&self) -> c_float;
69
70 #[unsafe(method(setFeedback:))]
72 #[unsafe(method_family = none)]
73 pub unsafe fn setFeedback(&self, feedback: c_float);
74
75 #[unsafe(method(lowPassCutoff))]
80 #[unsafe(method_family = none)]
81 pub unsafe fn lowPassCutoff(&self) -> c_float;
82
83 #[unsafe(method(setLowPassCutoff:))]
85 #[unsafe(method_family = none)]
86 pub unsafe fn setLowPassCutoff(&self, low_pass_cutoff: c_float);
87
88 #[unsafe(method(wetDryMix))]
93 #[unsafe(method_family = none)]
94 pub unsafe fn wetDryMix(&self) -> c_float;
95
96 #[unsafe(method(setWetDryMix:))]
98 #[unsafe(method_family = none)]
99 pub unsafe fn setWetDryMix(&self, wet_dry_mix: c_float);
100 );
101}
102
103#[cfg(all(
105 feature = "AVAudioNode",
106 feature = "AVAudioUnit",
107 feature = "AVAudioUnitEffect"
108))]
109impl AVAudioUnitDelay {
110 extern_methods!(
111 #[cfg(feature = "objc2-audio-toolbox")]
112 #[cfg(not(target_os = "watchos"))]
113 #[unsafe(method(initWithAudioComponentDescription:))]
125 #[unsafe(method_family = init)]
126 pub unsafe fn initWithAudioComponentDescription(
127 this: Allocated<Self>,
128 audio_component_description: AudioComponentDescription,
129 ) -> Retained<Self>;
130 );
131}
132
133#[cfg(all(
135 feature = "AVAudioNode",
136 feature = "AVAudioUnit",
137 feature = "AVAudioUnitEffect"
138))]
139impl AVAudioUnitDelay {
140 extern_methods!(
141 #[unsafe(method(init))]
142 #[unsafe(method_family = init)]
143 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
144
145 #[unsafe(method(new))]
146 #[unsafe(method_family = new)]
147 pub unsafe fn new() -> Retained<Self>;
148 );
149}