CommonLibSSE (Parapets fork)
BSAudioInit.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/B/BSCoreTypes.h"
4 #include "RE/B/BSFixedString.h"
5 
6 namespace RE
7 {
8  namespace BSExternalAudioIO
9  {
10  class ExternalIOInterface;
11  }
12 
13  class BSISoundDescriptor;
14 
16  {
17  public:
19  using NameIDCallbackFunc = bool(const char*, const BSISoundDescriptor*&);
20  using UnkCallbackFunc = bool(void*, void*);
21 
22  // members
26  };
27  static_assert(sizeof(BSAudioCallbacks) == 0x18);
28 
29  struct BSAudioInit
30  {
31  public:
32  // members
35  bool disableAudio; // 10
36  bool enableAudioCache; // 11
37  std::byte pad12[2]; // 12
38  std::uint32_t initialCacheSize; // 14
39  std::uint32_t maxAudioCacheSize; // 18
40  std::uint32_t maxSizeForCachedSound; // 1C
41  std::uint32_t audioHWThread; // 20
42  std::uint32_t streamingThreshold; // 24
43  float defaultMasterVolume; // 28
44  std::byte pad2C[4]; // 2C
45  BSExternalAudioIO::ExternalIOInterface* externalAudioIO; // 30
48  };
49  static_assert(sizeof(BSAudioInit) == 0x58);
50 }
Definition: BSISoundDescriptor.h:14
Definition: AbsorbEffect.h:6
std::uint32_t FormID
Definition: BSCoreTypes.h:5
HWND__ * HWND
Definition: WinAPI.h:37
Definition: BSAudioInit.h:16
NumericIDCallbackFunc * numericIDCallback
Definition: BSAudioInit.h:23
UnkCallbackFunc * unk50
Definition: BSAudioInit.h:25
bool(void *, void *) UnkCallbackFunc
Definition: BSAudioInit.h:20
bool(FormID, const BSISoundDescriptor *&) NumericIDCallbackFunc
Definition: BSAudioInit.h:18
NameIDCallbackFunc * nameIDCallback
Definition: BSAudioInit.h:24
bool(const char *, const BSISoundDescriptor *&) NameIDCallbackFunc
Definition: BSAudioInit.h:19
Definition: BSAudioInit.h:30
std::uint32_t streamingThreshold
Definition: BSAudioInit.h:42
BSFixedString missingAssetSoundFile
Definition: BSAudioInit.h:46
BSExternalAudioIO::ExternalIOInterface * externalAudioIO
Definition: BSAudioInit.h:45
std::uint32_t maxAudioCacheSize
Definition: BSAudioInit.h:39
std::uint32_t maxSizeForCachedSound
Definition: BSAudioInit.h:40
std::byte pad2C[4]
Definition: BSAudioInit.h:44
BSAudioCallbacks audioCallbacks
Definition: BSAudioInit.h:47
float defaultMasterVolume
Definition: BSAudioInit.h:43
bool disableAudio
Definition: BSAudioInit.h:35
bool enableAudioCache
Definition: BSAudioInit.h:36
BSFixedString audioAPI
Definition: BSAudioInit.h:33
std::byte pad12[2]
Definition: BSAudioInit.h:37
std::uint32_t initialCacheSize
Definition: BSAudioInit.h:38
std::uint32_t audioHWThread
Definition: BSAudioInit.h:41
WinAPI::HWND wnd
Definition: BSAudioInit.h:34