objc2-virtualization 0.3.2

Bindings to the Virtualization framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ptr::NonNull;
use objc2::__framework_prelude::*;

use crate::*;

extern_class!(
    /// Host audio input stream source provides audio from the host system's default input device.
    ///
    /// Host input data comes from the same device that AudioQueueNewInput uses.
    ///
    ///
    /// See: VZVirtioSoundDeviceInputStreamConfiguration
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/virtualization/vzhostaudioinputstreamsource?language=objc)
    #[unsafe(super(VZAudioInputStreamSource, NSObject))]
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "VZAudioInputStreamSource")]
    pub struct VZHostAudioInputStreamSource;
);

#[cfg(feature = "VZAudioInputStreamSource")]
extern_conformance!(
    unsafe impl NSObjectProtocol for VZHostAudioInputStreamSource {}
);

#[cfg(feature = "VZAudioInputStreamSource")]
impl VZHostAudioInputStreamSource {
    extern_methods!(
        #[unsafe(method(init))]
        #[unsafe(method_family = init)]
        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
    );
}

/// Methods declared on superclass `VZAudioInputStreamSource`.
#[cfg(feature = "VZAudioInputStreamSource")]
impl VZHostAudioInputStreamSource {
    extern_methods!(
        #[unsafe(method(new))]
        #[unsafe(method_family = new)]
        pub unsafe fn new() -> Retained<Self>;
    );
}