objc2_avf_audio/generated/
AVAudioConnectionPoint.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_class!(
9 #[unsafe(super(NSObject))]
18 #[derive(Debug, PartialEq, Eq, Hash)]
19 pub struct AVAudioConnectionPoint;
20);
21
22unsafe impl NSObjectProtocol for AVAudioConnectionPoint {}
23
24impl AVAudioConnectionPoint {
25 extern_methods!(
26 #[cfg(all(feature = "AVAudioNode", feature = "AVAudioTypes"))]
27 #[unsafe(method(initWithNode:bus:))]
35 #[unsafe(method_family = init)]
36 pub unsafe fn initWithNode_bus(
37 this: Allocated<Self>,
38 node: &AVAudioNode,
39 bus: AVAudioNodeBus,
40 ) -> Retained<Self>;
41
42 #[unsafe(method(init))]
43 #[unsafe(method_family = init)]
44 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
45
46 #[cfg(feature = "AVAudioNode")]
47 #[unsafe(method(node))]
49 #[unsafe(method_family = none)]
50 pub unsafe fn node(&self) -> Option<Retained<AVAudioNode>>;
51
52 #[cfg(feature = "AVAudioTypes")]
53 #[unsafe(method(bus))]
55 #[unsafe(method_family = none)]
56 pub unsafe fn bus(&self) -> AVAudioNodeBus;
57 );
58}
59
60impl AVAudioConnectionPoint {
62 extern_methods!(
63 #[unsafe(method(new))]
64 #[unsafe(method_family = new)]
65 pub unsafe fn new() -> Retained<Self>;
66 );
67}