objc2_virtualization/generated/
VZAudioInputStreamSource.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_class!(
9    /// Base class for an audio input stream source.
10    ///
11    /// An audio input stream source defines how audio input data for a guest is produced on the host system.
12    ///
13    /// VZAudioInputStreamSource should not be instantiated directly. One of its subclasses should be used instead.
14    ///
15    ///
16    /// See: VZHostAudioInputStreamSource
17    ///
18    /// See also [Apple's documentation](https://developer.apple.com/documentation/virtualization/vzaudioinputstreamsource?language=objc)
19    #[unsafe(super(NSObject))]
20    #[derive(Debug, PartialEq, Eq, Hash)]
21    pub struct VZAudioInputStreamSource;
22);
23
24unsafe impl NSObjectProtocol for VZAudioInputStreamSource {}
25
26impl VZAudioInputStreamSource {
27    extern_methods!(
28        #[unsafe(method(new))]
29        #[unsafe(method_family = new)]
30        pub unsafe fn new() -> Retained<Self>;
31
32        #[unsafe(method(init))]
33        #[unsafe(method_family = init)]
34        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
35    );
36}