CommonLibVR
BSAudioManager.h
Go to the documentation of this file.
1 #pragma once
2 
4 #include "RE/B/BSFixedString.h"
5 #include "RE/B/BSTHashMap.h"
6 
7 namespace RE
8 {
9  class BSISoundDescriptor;
10  class BSXAudio2GameSound;
11  struct BSSoundHandle;
12 
13  namespace BSResource
14  {
15  struct ID;
16  }
17 
19  {
20  public:
22 
23  bool Play(FormID a_soundFormID);
24  bool Play(BSISoundDescriptor* a_descriptor);
25  bool BuildSoundDataFromDescriptor(BSSoundHandle& a_soundHandle, BSISoundDescriptor* a_descriptor, std::uint32_t a_flags = 0x1A);
26  void BuildSoundDataFromEditorID(BSSoundHandle& a_soundHandle, const char* a_editorID, std::uint32_t a_flags);
27  void BuildSoundDataFromFile(BSSoundHandle& a_soundHandle, const BSResource::ID& a_file, std::uint32_t a_flags, std::uint32_t a_priority);
28 
29  // members
30  std::uint64_t unk000; // 000
31  void* unk008; // 008
32  void* unk010; // 010
33  void* unk018; // 018
34  void* unk020; // 020
35  std::uint64_t unk028; // 028
40  std::uint64_t unk0F0; // 0F0
42  std::uint64_t unk100; // 100
44  std::uint64_t unk110; // 110
45  std::uint64_t unk118; // 118
46  std::uint64_t unk120; // 120
47  std::uint64_t unk128; // 128
48  std::uint64_t unk130; // 130
49  std::uint64_t unk138; // 138
50  std::uint64_t unk140; // 140
51  std::uint64_t unk148; // 148
52  std::uint64_t unk150; // 150
53  std::uint64_t unk158; // 158
54  std::uint64_t unk160; // 160
55  std::uint64_t unk168; // 168
56  std::uint64_t unk170; // 170
57  std::uint64_t unk178; // 178
58  std::uint64_t unk180; // 180
59  std::uint64_t unk188; // 188
60  private:
61  KEEP_FOR_RE()
62  };
63  static_assert(sizeof(BSAudioManager) == 0x190);
64 }
#define KEEP_FOR_RE()
Definition: PCH.h:713
Definition: BSAudioManagerThread.h:8
Definition: BSAudioManager.h:19
std::uint64_t unk178
Definition: BSAudioManager.h:57
std::uint64_t unk140
Definition: BSAudioManager.h:50
std::uint64_t unk110
Definition: BSAudioManager.h:44
bool Play(BSISoundDescriptor *a_descriptor)
void BuildSoundDataFromFile(BSSoundHandle &a_soundHandle, const BSResource::ID &a_file, std::uint32_t a_flags, std::uint32_t a_priority)
void * unk010
Definition: BSAudioManager.h:32
void * unk008
Definition: BSAudioManager.h:31
BSTHashMap< UnkKey, UnkValue > unk0C0
Definition: BSAudioManager.h:39
bool Play(FormID a_soundFormID)
std::uint64_t unk180
Definition: BSAudioManager.h:58
std::uint64_t unk150
Definition: BSAudioManager.h:52
BSTHashMap< std::uint32_t, BSXAudio2GameSound * > unk030
Definition: BSAudioManager.h:36
std::uint64_t unk118
Definition: BSAudioManager.h:45
BSFixedString unk108
Definition: BSAudioManager.h:43
BSTHashMap< UnkKey, UnkValue > unk090
Definition: BSAudioManager.h:38
std::uint64_t unk170
Definition: BSAudioManager.h:56
std::uint64_t unk188
Definition: BSAudioManager.h:59
void * unk020
Definition: BSAudioManager.h:34
std::uint64_t unk100
Definition: BSAudioManager.h:42
std::uint64_t unk168
Definition: BSAudioManager.h:55
std::uint64_t unk130
Definition: BSAudioManager.h:48
std::uint64_t unk148
Definition: BSAudioManager.h:51
std::uint64_t unk138
Definition: BSAudioManager.h:49
std::uint64_t unk128
Definition: BSAudioManager.h:47
static BSAudioManager * GetSingleton()
void BuildSoundDataFromEditorID(BSSoundHandle &a_soundHandle, const char *a_editorID, std::uint32_t a_flags)
std::uint64_t unk0F0
Definition: BSAudioManager.h:40
std::uint64_t unk000
Definition: BSAudioManager.h:30
std::uint64_t unk120
Definition: BSAudioManager.h:46
BSTHashMap< UnkKey, UnkValue > unk060
Definition: BSAudioManager.h:37
void * unk018
Definition: BSAudioManager.h:33
std::uint64_t unk160
Definition: BSAudioManager.h:54
bool BuildSoundDataFromDescriptor(BSSoundHandle &a_soundHandle, BSISoundDescriptor *a_descriptor, std::uint32_t a_flags=0x1A)
std::uint64_t unk158
Definition: BSAudioManager.h:53
std::uint64_t unk028
Definition: BSAudioManager.h:35
BSAudioManagerThread * unk0F8
Definition: BSAudioManager.h:41
Definition: BSISoundDescriptor.h:6
Definition: BSTHashMap.h:21
Definition: AbsorbEffect.h:6
std::uint32_t FormID
Definition: BSCoreTypes.h:5
Definition: ID.h:10
Definition: BSSoundHandle.h:10