objc2_virtualization/generated/
VZHostAudioInputStreamSource.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    /// Host audio input stream source provides audio from the host system's default input device.
10    ///
11    /// Host input data comes from the same device that AudioQueueNewInput uses.
12    ///
13    ///
14    /// See: VZVirtioSoundDeviceInputStreamConfiguration
15    ///
16    /// See also [Apple's documentation](https://developer.apple.com/documentation/virtualization/vzhostaudioinputstreamsource?language=objc)
17    #[unsafe(super(VZAudioInputStreamSource, NSObject))]
18    #[derive(Debug, PartialEq, Eq, Hash)]
19    #[cfg(feature = "VZAudioInputStreamSource")]
20    pub struct VZHostAudioInputStreamSource;
21);
22
23#[cfg(feature = "VZAudioInputStreamSource")]
24unsafe impl NSObjectProtocol for VZHostAudioInputStreamSource {}
25
26#[cfg(feature = "VZAudioInputStreamSource")]
27impl VZHostAudioInputStreamSource {
28    extern_methods!(
29        #[unsafe(method(init))]
30        #[unsafe(method_family = init)]
31        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
32    );
33}
34
35/// Methods declared on superclass `VZAudioInputStreamSource`.
36#[cfg(feature = "VZAudioInputStreamSource")]
37impl VZHostAudioInputStreamSource {
38    extern_methods!(
39        #[unsafe(method(new))]
40        #[unsafe(method_family = new)]
41        pub unsafe fn new() -> Retained<Self>;
42    );
43}