objc2_virtualization/generated/
VZAudioOutputStreamSink.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 output stream sink.
10    ///
11    /// An audio output stream sink defines how audio data from a guest is consumed on the host system.
12    ///
13    /// VZAudioOutputStreamSink should not be instantiated directly. One of its subclasses should be used instead.
14    ///
15    ///
16    /// See: VZHostAudioOutputStreamSink
17    ///
18    /// See also [Apple's documentation](https://developer.apple.com/documentation/virtualization/vzaudiooutputstreamsink?language=objc)
19    #[unsafe(super(NSObject))]
20    #[derive(Debug, PartialEq, Eq, Hash)]
21    pub struct VZAudioOutputStreamSink;
22);
23
24extern_conformance!(
25    unsafe impl NSObjectProtocol for VZAudioOutputStreamSink {}
26);
27
28impl VZAudioOutputStreamSink {
29    extern_methods!(
30        #[unsafe(method(new))]
31        #[unsafe(method_family = new)]
32        pub unsafe fn new() -> Retained<Self>;
33
34        #[unsafe(method(init))]
35        #[unsafe(method_family = init)]
36        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
37    );
38}