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
22extern_conformance!(
23 unsafe impl NSObjectProtocol for AVAudioConnectionPoint {}
24);
25
26impl AVAudioConnectionPoint {
27 extern_methods!(
28 #[cfg(all(feature = "AVAudioNode", feature = "AVAudioTypes"))]
29 #[unsafe(method(initWithNode:bus:))]
37 #[unsafe(method_family = init)]
38 pub unsafe fn initWithNode_bus(
39 this: Allocated<Self>,
40 node: &AVAudioNode,
41 bus: AVAudioNodeBus,
42 ) -> Retained<Self>;
43
44 #[unsafe(method(init))]
45 #[unsafe(method_family = init)]
46 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
47
48 #[cfg(feature = "AVAudioNode")]
49 #[unsafe(method(node))]
51 #[unsafe(method_family = none)]
52 pub unsafe fn node(&self) -> Option<Retained<AVAudioNode>>;
53
54 #[cfg(feature = "AVAudioTypes")]
55 #[unsafe(method(bus))]
57 #[unsafe(method_family = none)]
58 pub unsafe fn bus(&self) -> AVAudioNodeBus;
59 );
60}
61
62impl AVAudioConnectionPoint {
64 extern_methods!(
65 #[unsafe(method(new))]
66 #[unsafe(method_family = new)]
67 pub unsafe fn new() -> Retained<Self>;
68 );
69}