CommonLibSSE (Parapets fork)
BSAudioMonitor.h
Go to the documentation of this file.
1 #pragma once
2 
3 namespace RE
4 {
5  namespace BSAudioMonitor
6  {
7  class Request
8  {
9  public:
10  Request(std::uint16_t a_monitor, std::uint16_t a_sendLevel) :
11  monitor(a_monitor),
12  sendLevel(a_sendLevel)
13  {}
14 
15  [[nodiscard]] std::uint32_t QID() const { return monitor; }
16  [[nodiscard]] std::uint16_t QSendLevel() const { return sendLevel; }
17 
18  // members
19  std::uint16_t monitor; // 0
20  std::uint16_t sendLevel; // 2
21  };
22  static_assert(sizeof(Request) == 0x4);
23 
24  class Receiver
25  {
26  public:
27  Receiver(const float& a_amplitude) :
28  amplitude(std::addressof(a_amplitude))
29  {}
30 
31  [[nodiscard]] float QAmplitude() const { return *amplitude; }
32 
33  // members
34  const float* amplitude; // 0
35  };
36  static_assert(sizeof(Receiver) == 0x8);
37  static_assert(!REL::detail::is_x64_pod_v<Receiver>);
38  }
39 }
Definition: BSAudioMonitor.h:25
const float * amplitude
Definition: BSAudioMonitor.h:34
float QAmplitude() const
Definition: BSAudioMonitor.h:31
Receiver(const float &a_amplitude)
Definition: BSAudioMonitor.h:27
Definition: BSAudioMonitor.h:8
std::uint16_t sendLevel
Definition: BSAudioMonitor.h:20
Request(std::uint16_t a_monitor, std::uint16_t a_sendLevel)
Definition: BSAudioMonitor.h:10
std::uint16_t monitor
Definition: BSAudioMonitor.h:19
std::uint32_t QID() const
Definition: BSAudioMonitor.h:15
std::uint16_t QSendLevel() const
Definition: BSAudioMonitor.h:16
Definition: AbsorbEffect.h:6
Definition: NiBinaryStream.h:94