LeviLamina
Loading...
Searching...
No Matches
AudioSource.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5namespace cricket {
6
8public:
9 // AudioSource inner types declare
10 // clang-format off
11 class Sink;
12 // clang-format on
13
14 // AudioSource inner types define
15 class Sink {
16 public:
17 // virtual functions
18 // NOLINTBEGIN
19 virtual void OnData(void const*, int, int, uint64, uint64, ::std::optional<int64>) = 0;
20
21 virtual void OnClose() = 0;
22
23 virtual int NumPreferredChannels() const = 0;
24
25 virtual ~Sink() = default;
26 // NOLINTEND
27
28 public:
29 // virtual function thunks
30 // NOLINTBEGIN
31
32 // NOLINTEND
33 };
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 virtual void SetSink(::cricket::AudioSource::Sink*) = 0;
39
40 virtual ~AudioSource() = default;
41 // NOLINTEND
42
43public:
44 // virtual function thunks
45 // NOLINTBEGIN
46
47 // NOLINTEND
48
49public:
50 // vftables
51 // NOLINTBEGIN
52 MCNAPI static void** $vftable();
53 // NOLINTEND
54};
55
56} // namespace cricket
Definition AudioSource.h:15
Definition AudioSource.h:7
static MCAPI void ** $vftable()