CommonLibSSE (Parapets fork)
BSAudio.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/B/BSAudioMonitor.h"
4 #include "RE/B/BSFixedString.h"
5 
6 namespace RE
7 {
8  namespace BSResource
9  {
10  struct ID;
11  }
12 
13  class BSGameSound;
14  class BSIReverbType;
15  class BSAudioListener;
16 
17  class BSAudio
18  {
19  public:
20  inline static constexpr auto RTTI = RTTI_BSAudio;
21 
22  virtual ~BSAudio(); // 00
23 
24  // add
25  virtual bool Init(WinAPI::HWND* a_wnd); // 01
26  virtual void Shutdown(); // 02
27  virtual BSGameSound* GetGameSound(const BSResource::ID& a_resourceID) = 0; // 03
28  virtual void ReleaseGameSound(BSGameSound* a_gameSound) = 0; // 04
29  virtual const BSFixedString& GetSystemName() = 0; // 05
30  virtual void PostGameSoundUpdates(); // 06
31  virtual void ApplyReverbType(const BSIReverbType* a_reverbType, std::uint32_t a_tickLength); // 07
32  virtual std::uint32_t CreateMonitor(); // 08
33  virtual void ReleaseMonitor(std::uint32_t a_monitor); // 09
34  virtual BSAudioMonitor::Receiver GetReceiver(std::uint32_t a_monitor); // 0A
35 
36  // members
37  std::uint64_t unk08; // 08
39  };
40  static_assert(sizeof(BSAudio) == 0x18);
41 }
Definition: BSAudioListener.h:9
Definition: BSAudioMonitor.h:25
Definition: BSAudio.h:18
std::uint64_t unk08
Definition: BSAudio.h:37
virtual void ReleaseGameSound(BSGameSound *a_gameSound)=0
static constexpr auto RTTI
Definition: BSAudio.h:20
virtual BSAudioMonitor::Receiver GetReceiver(std::uint32_t a_monitor)
BSAudioListener * audioListener
Definition: BSAudio.h:38
virtual void PostGameSoundUpdates()
virtual void ReleaseMonitor(std::uint32_t a_monitor)
virtual bool Init(WinAPI::HWND *a_wnd)
virtual ~BSAudio()
virtual BSGameSound * GetGameSound(const BSResource::ID &a_resourceID)=0
virtual void Shutdown()
virtual void ApplyReverbType(const BSIReverbType *a_reverbType, std::uint32_t a_tickLength)
virtual const BSFixedString & GetSystemName()=0
virtual std::uint32_t CreateMonitor()
Definition: BSGameSound.h:16
Definition: BSIReverbType.h:6
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_BSAudio
Definition: Offsets_RTTI.h:1632
HWND__ * HWND
Definition: WinAPI.h:37
Definition: ID.h:10