CommonLibSSE (Parapets fork)
RE::BSXAudio2GameSound Class Reference

#include <BSXAudio2GameSound.h>

Inheritance diagram for RE::BSXAudio2GameSound:
RE::BSGameSound

Public Member Functions

void OutputModelChangedImpl () override
 
 ~BSXAudio2GameSound () override
 
std::uint32_t GetCurrentPlaybackPosition () const override
 
bool SyncOpen () override
 
bool StartAsyncOpen () override
 
bool TestAsyncOpenReady () override
 
bool FinishAsyncOpen () override
 
bool HandleExternalOpen () override
 
bool Prepare () override
 
void Copy (BSGameSound *a_other, bool a_update) override
 
void UpdateEmitterPosition () override
 
bool Update () override
 
void SetEmitterPositionImpl (const NiPoint3 &a_position) override
 
void GetEmitterPositionImpl (NiPoint3 &a_position) const override
 
void Unk_11 (float a_arg1, float a_arg2) override
 
void SetAttenuationCurve (std::uint16_t a_val1, std::uint16_t a_val2, std::uint16_t a_val3, std::uint16_t a_val4, std::uint16_t a_val5) override
 
void DoApplyFrequency () override
 
void Seek (std::uint32_t a_milliseconds) override
 
void PlayImpl () override
 
void PauseImpl () override
 
void StopImpl () override
 
void SetVolumeImpl () override
 
void SeekInSamples (std::uint32_t a_samples)
 
- Public Member Functions inherited from RE::BSGameSound
virtual ~BSGameSound ()
 
virtual bool IsSoundFinished () const
 
virtual void SetSoundFinished (bool a_set)
 
virtual bool PriorityTest (const BSGameSound *a_other) const
 
 TES_HEAP_REDEFINE_NEW ()
 
void SetOutputModel (BSISoundOutputModel *a_outputModel)
 
void SetVolume (float a_volume)
 
constexpr float GetFrequency () const noexcept
 
constexpr bool HasBeenOpened () const noexcept
 
constexpr bool IsAsyncOpening () const noexcept
 
constexpr bool IsInDecay () const noexcept
 
constexpr bool IsOpening () const noexcept
 
constexpr bool IsMusic () const noexcept
 
constexpr bool IsPaused () const noexcept
 
constexpr bool IsPlayable () const noexcept
 
constexpr bool IsPlaying () const noexcept
 
constexpr bool IsValid () const noexcept
 
constexpr bool IsValidBeam () const noexcept
 
constexpr const BSISoundCategoryQCategory () const noexcept
 
constexpr bool QPositionSet () const noexcept
 

Static Public Member Functions

static BSXAudio2AudioGetAudioImplementation ()
 
static void SetAudioImplementation (BSXAudio2Audio *a_impl)
 

Public Attributes

BSXAudio2DataSrcsrc
 
std::uint32_t buffersSubmitted
 
std::uint16_t buffersQueued
 
std::uint16_t packetIndex
 
X3DAUDIO_DISTANCE_CURVE volumeCurve
 
X3DAUDIO_DISTANCE_CURVE_POINT curvePoints [6]
 
std::uint32_t lastUpdateTime
 
std::uint32_t samplesPlayed
 
std::uint32_t playbackPosition
 
IXAudio2SourceVoice * sourceVoice
 
X3DAUDIO_DSP_SETTINGS dspSettings
 
X3DAUDIO_EMITTER emitter
 
X3DAUDIO_CONE cone
 
std::uint32_t dataOffset
 
std::byte pad20C [4]
 
BSXAudio2DataSrc::StreamPacketstreamPackets [2]
 
- Public Attributes inherited from RE::BSGameSound
BSTSmallArray< BSAudioMonitor::Request, 2 > requests
 
NiPoint3 beamEnd
 
std::byte pad2C [4]
 
SoundMessageList soundMessageList
 
BSResource::ID resourceID
 
std::uint32_t unk4C
 
stl::enumeration< SoundType, std::uint32_t > soundType
 
std::uint32_t unk54
 
std::uint32_t unk58
 
stl::enumeration< Flags, std::uint32_t > flags
 
std::uint32_t durationMilliseconds
 
std::uint16_t staticAttenuation
 
std::uint16_t unk66
 
std::uint16_t systemAttenuation
 
std::uint16_t unk6A
 
std::uint16_t unk6C
 
std::byte pad6E [2]
 
float volume
 
float unk74
 
float unk78
 
std::uint32_t unk7C
 
float listenerDistance
 
std::uint32_t unk84
 
std::uint64_t unk88
 
UnkCallbackFuncunk90
 
std::uint64_t unk98
 
std::uint64_t unkA0
 
std::uint32_t priority
 
std::uint32_t unkAC
 
BSISoundCategorycategory
 
BSISoundOutputModeloutputModel
 
std::uint8_t frequency
 
std::uint8_t freqVariance
 
std::byte padC2 [6]
 

Static Public Attributes

static constexpr auto RTTI = RTTI_BSXAudio2GameSound
 
- Static Public Attributes inherited from RE::BSGameSound
static constexpr auto RTTI = RTTI_BSGameSound
 

Additional Inherited Members

- Public Types inherited from RE::BSGameSound
enum class  Flags {
  HasBeenOpened = 1 << 0 , IsSoundFinished = 1 << 4 , IsPlaying = 1 << 5 , IsPaused = 1 << 6 ,
  IsValid = 1 << 8 , IsPlayable = 1 << 11 , IsOpening = 1 << 12 , IsValidBeam = 1 << 15 ,
  IsAsyncOpening = 1 << 18 , IsInDecay = 1 << 19 , PositionSet = 1 << 20
}
 
enum class  SoundType { Music = 1 << 5 }
 
using UnkCallbackFunc = void(void *, std::uint32_t)
 

Constructor & Destructor Documentation

◆ ~BSXAudio2GameSound()

RE::BSXAudio2GameSound::~BSXAudio2GameSound ( )
override

Member Function Documentation

◆ Copy()

void RE::BSXAudio2GameSound::Copy ( BSGameSound a_other,
bool  a_update 
)
overridevirtual

Reimplemented from RE::BSGameSound.

◆ DoApplyFrequency()

void RE::BSXAudio2GameSound::DoApplyFrequency ( )
overridevirtual

Reimplemented from RE::BSGameSound.

◆ FinishAsyncOpen()

bool RE::BSXAudio2GameSound::FinishAsyncOpen ( )
overridevirtual

Implements RE::BSGameSound.

◆ GetAudioImplementation()

static BSXAudio2Audio* RE::BSXAudio2GameSound::GetAudioImplementation ( )
static

◆ GetCurrentPlaybackPosition()

std::uint32_t RE::BSXAudio2GameSound::GetCurrentPlaybackPosition ( ) const
overridevirtual

Implements RE::BSGameSound.

◆ GetEmitterPositionImpl()

void RE::BSXAudio2GameSound::GetEmitterPositionImpl ( NiPoint3 a_position) const
overridevirtual

Implements RE::BSGameSound.

◆ HandleExternalOpen()

bool RE::BSXAudio2GameSound::HandleExternalOpen ( )
overridevirtual

Implements RE::BSGameSound.

◆ OutputModelChangedImpl()

void RE::BSXAudio2GameSound::OutputModelChangedImpl ( )
overridevirtual

Reimplemented from RE::BSGameSound.

◆ PauseImpl()

void RE::BSXAudio2GameSound::PauseImpl ( )
overridevirtual

Implements RE::BSGameSound.

◆ PlayImpl()

void RE::BSXAudio2GameSound::PlayImpl ( )
overridevirtual

Implements RE::BSGameSound.

◆ Prepare()

bool RE::BSXAudio2GameSound::Prepare ( )
overridevirtual

Reimplemented from RE::BSGameSound.

◆ Seek()

void RE::BSXAudio2GameSound::Seek ( std::uint32_t  a_milliseconds)
overridevirtual

Implements RE::BSGameSound.

◆ SeekInSamples()

void RE::BSXAudio2GameSound::SeekInSamples ( std::uint32_t  a_samples)

◆ SetAttenuationCurve()

void RE::BSXAudio2GameSound::SetAttenuationCurve ( std::uint16_t  a_val1,
std::uint16_t  a_val2,
std::uint16_t  a_val3,
std::uint16_t  a_val4,
std::uint16_t  a_val5 
)
overridevirtual

Implements RE::BSGameSound.

◆ SetAudioImplementation()

static void RE::BSXAudio2GameSound::SetAudioImplementation ( BSXAudio2Audio a_impl)
static

◆ SetEmitterPositionImpl()

void RE::BSXAudio2GameSound::SetEmitterPositionImpl ( const NiPoint3 a_position)
overridevirtual

Implements RE::BSGameSound.

◆ SetVolumeImpl()

void RE::BSXAudio2GameSound::SetVolumeImpl ( )
overridevirtual

Implements RE::BSGameSound.

◆ StartAsyncOpen()

bool RE::BSXAudio2GameSound::StartAsyncOpen ( )
overridevirtual

Implements RE::BSGameSound.

◆ StopImpl()

void RE::BSXAudio2GameSound::StopImpl ( )
overridevirtual

Implements RE::BSGameSound.

◆ SyncOpen()

bool RE::BSXAudio2GameSound::SyncOpen ( )
overridevirtual

Implements RE::BSGameSound.

◆ TestAsyncOpenReady()

bool RE::BSXAudio2GameSound::TestAsyncOpenReady ( )
overridevirtual

Implements RE::BSGameSound.

◆ Unk_11()

void RE::BSXAudio2GameSound::Unk_11 ( float  a_arg1,
float  a_arg2 
)
overridevirtual

Implements RE::BSGameSound.

◆ Update()

bool RE::BSXAudio2GameSound::Update ( )
overridevirtual

Reimplemented from RE::BSGameSound.

◆ UpdateEmitterPosition()

void RE::BSXAudio2GameSound::UpdateEmitterPosition ( )
overridevirtual

Implements RE::BSGameSound.

Member Data Documentation

◆ buffersQueued

std::uint16_t RE::BSXAudio2GameSound::buffersQueued

◆ buffersSubmitted

std::uint32_t RE::BSXAudio2GameSound::buffersSubmitted

◆ cone

X3DAUDIO_CONE RE::BSXAudio2GameSound::cone

◆ curvePoints

X3DAUDIO_DISTANCE_CURVE_POINT RE::BSXAudio2GameSound::curvePoints[6]

◆ dataOffset

std::uint32_t RE::BSXAudio2GameSound::dataOffset

◆ dspSettings

X3DAUDIO_DSP_SETTINGS RE::BSXAudio2GameSound::dspSettings

◆ emitter

X3DAUDIO_EMITTER RE::BSXAudio2GameSound::emitter

◆ lastUpdateTime

std::uint32_t RE::BSXAudio2GameSound::lastUpdateTime

◆ packetIndex

std::uint16_t RE::BSXAudio2GameSound::packetIndex

◆ pad20C

std::byte RE::BSXAudio2GameSound::pad20C[4]

◆ playbackPosition

std::uint32_t RE::BSXAudio2GameSound::playbackPosition

◆ RTTI

constexpr auto RE::BSXAudio2GameSound::RTTI = RTTI_BSXAudio2GameSound
inlinestaticconstexpr

◆ samplesPlayed

std::uint32_t RE::BSXAudio2GameSound::samplesPlayed

◆ sourceVoice

IXAudio2SourceVoice* RE::BSXAudio2GameSound::sourceVoice

◆ src

BSXAudio2DataSrc* RE::BSXAudio2GameSound::src

◆ streamPackets

BSXAudio2DataSrc::StreamPacket* RE::BSXAudio2GameSound::streamPackets[2]

◆ volumeCurve

X3DAUDIO_DISTANCE_CURVE RE::BSXAudio2GameSound::volumeCurve

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