CommonLibSSE (Parapets fork)
RE::BSAudioManager Class Reference

#include <BSAudioManager.h>

Public Types

enum class  Flags : std::uint32_t {
  ManagerInitialized = 1 << 0 , PlatformInitialized = 1 << 1 , PlatformInitFailed = 1 << 2 , CacheEnabled = 1 << 3 ,
  ShuttingDown = 1 << 4 , RunDisabled = 1 << 5
}
 

Public Member Functions

void ClearCache ()
 
void ComposeMessage (SOUND_MSG a_message, std::uint32_t a_id=0, std::int32_t a_iData=0, void *a_pData=nullptr, NiPointer< NiAVObject > a_spData=nullptr, const NiPoint3 &a_vector3={})
 
bool GetSoundHandle (BSSoundHandle &a_soundHandle, BSISoundDescriptor *a_descriptor, std::uint32_t a_flags=0x1A)
 
void KillAll (bool a_waitForCompletion=false, std::uint32_t a_waitTicks=1000)
 
bool Play (FormID a_soundFormID)
 
bool Play (BSISoundDescriptor *a_descriptor)
 
void PrecacheDescriptor (const BSISoundDescriptor *a_descriptor, std::uint32_t a_flags)
 
void SetCacheEnabled (bool a_enabled)
 
constexpr bool GetCacheEnabled () const noexcept
 

Static Public Member Functions

static BSAudioManagerGetSingleton ()
 
static BSAudioQPlatformInstance ()
 

Public Attributes

std::uint32_t frontQueue
 
std::uint32_t backQueue
 
SoundMessageListmessageQueues [2]
 
SoundMessageStackfreeMessages
 
SoundMessageStackprocessedMessages
 
BSTHashMap< std::uint32_t, BSGameSound * > activeSounds
 
BSTHashMap< std::uint32_t, BSSoundInfo * > stateMap
 
BSTHashMap< std::uint32_t, NiPointer< NiAVObject > > movingSounds
 
BSTHashMap< const NiAVObject *, const BSISoundOutputModel * > objectOutputOverrides
 
BSTList< BSGameSound * > audioCache
 
std::uint32_t audioCacheSize
 
std::uint32_t ownerThreadID
 
BSAudioManagerThreadownerThread
 
std::uint32_t unk100
 
std::uint32_t audioHWThread
 
BSAudioInit initSettings
 
std::uint32_t maxCacheSize
 
std::uint32_t maxAudioCacheSize
 
std::uint32_t maxSizeForCachedSound
 
stl::enumeration< Flags, std::uint32_t > flags
 
float masterVolume
 
std::uint32_t asyncReadPriorityThreshold
 
BSAudioCallbacks audioCallbacks
 

Member Enumeration Documentation

◆ Flags

enum RE::BSAudioManager::Flags : std::uint32_t
strong
Enumerator
ManagerInitialized 
PlatformInitialized 
PlatformInitFailed 
CacheEnabled 
ShuttingDown 
RunDisabled 

Member Function Documentation

◆ ClearCache()

void RE::BSAudioManager::ClearCache ( )

◆ ComposeMessage()

void RE::BSAudioManager::ComposeMessage ( SOUND_MSG  a_message,
std::uint32_t  a_id = 0,
std::int32_t  a_iData = 0,
void *  a_pData = nullptr,
NiPointer< NiAVObject a_spData = nullptr,
const NiPoint3 a_vector3 = {} 
)

◆ GetCacheEnabled()

constexpr bool RE::BSAudioManager::GetCacheEnabled ( ) const
inlineconstexprnoexcept

◆ GetSingleton()

static BSAudioManager* RE::BSAudioManager::GetSingleton ( )
static

◆ GetSoundHandle()

bool RE::BSAudioManager::GetSoundHandle ( BSSoundHandle a_soundHandle,
BSISoundDescriptor a_descriptor,
std::uint32_t  a_flags = 0x1A 
)

◆ KillAll()

void RE::BSAudioManager::KillAll ( bool  a_waitForCompletion = false,
std::uint32_t  a_waitTicks = 1000 
)

◆ Play() [1/2]

bool RE::BSAudioManager::Play ( BSISoundDescriptor a_descriptor)

◆ Play() [2/2]

bool RE::BSAudioManager::Play ( FormID  a_soundFormID)

◆ PrecacheDescriptor()

void RE::BSAudioManager::PrecacheDescriptor ( const BSISoundDescriptor a_descriptor,
std::uint32_t  a_flags 
)

◆ QPlatformInstance()

static BSAudio* RE::BSAudioManager::QPlatformInstance ( )
static

◆ SetCacheEnabled()

void RE::BSAudioManager::SetCacheEnabled ( bool  a_enabled)

Member Data Documentation

◆ activeSounds

BSTHashMap<std::uint32_t, BSGameSound*> RE::BSAudioManager::activeSounds

◆ asyncReadPriorityThreshold

std::uint32_t RE::BSAudioManager::asyncReadPriorityThreshold

◆ audioCache

BSTList<BSGameSound*> RE::BSAudioManager::audioCache

◆ audioCacheSize

std::uint32_t RE::BSAudioManager::audioCacheSize

◆ audioCallbacks

BSAudioCallbacks RE::BSAudioManager::audioCallbacks

◆ audioHWThread

std::uint32_t RE::BSAudioManager::audioHWThread

◆ backQueue

std::uint32_t RE::BSAudioManager::backQueue

◆ flags

stl::enumeration<Flags, std::uint32_t> RE::BSAudioManager::flags

◆ freeMessages

SoundMessageStack* RE::BSAudioManager::freeMessages

◆ frontQueue

std::uint32_t RE::BSAudioManager::frontQueue

◆ initSettings

BSAudioInit RE::BSAudioManager::initSettings

◆ masterVolume

float RE::BSAudioManager::masterVolume

◆ maxAudioCacheSize

std::uint32_t RE::BSAudioManager::maxAudioCacheSize

◆ maxCacheSize

std::uint32_t RE::BSAudioManager::maxCacheSize

◆ maxSizeForCachedSound

std::uint32_t RE::BSAudioManager::maxSizeForCachedSound

◆ messageQueues

SoundMessageList* RE::BSAudioManager::messageQueues[2]

◆ movingSounds

BSTHashMap<std::uint32_t, NiPointer<NiAVObject> > RE::BSAudioManager::movingSounds

◆ objectOutputOverrides

BSTHashMap<const NiAVObject*, const BSISoundOutputModel*> RE::BSAudioManager::objectOutputOverrides

◆ ownerThread

BSAudioManagerThread* RE::BSAudioManager::ownerThread

◆ ownerThreadID

std::uint32_t RE::BSAudioManager::ownerThreadID

◆ processedMessages

SoundMessageStack* RE::BSAudioManager::processedMessages

◆ stateMap

BSTHashMap<std::uint32_t, BSSoundInfo*> RE::BSAudioManager::stateMap

◆ unk100

std::uint32_t RE::BSAudioManager::unk100

The documentation for this class was generated from the following file: