objc2_virtualization/generated/
VZHostAudioOutputStreamSink.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 output stream sink plays audio to the host system's default output device.
10    ///
11    /// Host output data goes to the same device that AudioQueueNewOutput uses.
12    ///
13    ///
14    /// See: VZVirtioSoundDeviceOutputStreamConfiguration
15    ///
16    /// See also [Apple's documentation](https://developer.apple.com/documentation/virtualization/vzhostaudiooutputstreamsink?language=objc)
17    #[unsafe(super(VZAudioOutputStreamSink, NSObject))]
18    #[derive(Debug, PartialEq, Eq, Hash)]
19    #[cfg(feature = "VZAudioOutputStreamSink")]
20    pub struct VZHostAudioOutputStreamSink;
21);
22
23#[cfg(feature = "VZAudioOutputStreamSink")]
24unsafe impl NSObjectProtocol for VZHostAudioOutputStreamSink {}
25
26#[cfg(feature = "VZAudioOutputStreamSink")]
27impl VZHostAudioOutputStreamSink {
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 `VZAudioOutputStreamSink`.
36#[cfg(feature = "VZAudioOutputStreamSink")]
37impl VZHostAudioOutputStreamSink {
38    extern_methods!(
39        #[unsafe(method(new))]
40        #[unsafe(method_family = new)]
41        pub unsafe fn new() -> Retained<Self>;
42    );
43}