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")]
24extern_conformance!(
25    unsafe impl NSObjectProtocol for VZHostAudioOutputStreamSink {}
26);
27
28#[cfg(feature = "VZAudioOutputStreamSink")]
29impl VZHostAudioOutputStreamSink {
30    extern_methods!(
31        #[unsafe(method(init))]
32        #[unsafe(method_family = init)]
33        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
34    );
35}
36
37/// Methods declared on superclass `VZAudioOutputStreamSink`.
38#[cfg(feature = "VZAudioOutputStreamSink")]
39impl VZHostAudioOutputStreamSink {
40    extern_methods!(
41        #[unsafe(method(new))]
42        #[unsafe(method_family = new)]
43        pub unsafe fn new() -> Retained<Self>;
44    );
45}