NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
nw4r::snd::detail::SoundArchiveFileReader Class Reference

Description

Definition at line 281 of file snd_SoundArchiveFile.h.

Public Member Functions

void Init (void const *soundArchiveData)
 
u16 GetVersion () const
 
ulong GetLabelStringChunkOffset () const
 
ulong GetLabelStringChunkSize () const
 
ulong GetInfoChunkOffset () const
 
ulong GetInfoChunkSize () const
 
char const * GetString (ulong id) const
 
SoundArchive::SoundType GetSoundType (ulong soundId) const
 
ulong GetSoundStringId (ulong id) const
 
ulong GetBankCount () const
 
ulong GetPlayerCount () const
 
ulong GetGroupCount () const
 
ulong GetFileCount () const
 
void const * GetPtrConst (void const *base, ulong offset) const
 
void SetStringChunk (void const *stringChunk, ulong stringChunkSize)
 
void SetInfoChunk (void const *infoChunk, ulong infoChunkSize)
 
bool ReadSeqSoundInfo (ulong soundId, SoundArchive::SeqSoundInfo *info) const
 
bool ReadStrmSoundInfo (ulong soundId, SoundArchive::StrmSoundInfo *info) const
 
bool ReadWaveSoundInfo (ulong soundId, SoundArchive::WaveSoundInfo *info) const
 
bool ReadSoundArchivePlayerInfo (SoundArchive::SoundArchivePlayerInfo *info) const
 
bool ReadSoundInfo (ulong soundId, SoundArchive::SoundInfo *info) const
 
bool ReadBankInfo (ulong bankId, SoundArchive::BankInfo *info) const
 
bool ReadPlayerInfo (ulong playerId, SoundArchive::PlayerInfo *info) const
 
bool ReadSound3DParam (ulong soundId, nw4r::snd::SoundArchive::Sound3DParam *info) const
 
bool ReadGroupItemInfo (ulong groupId, ulong index, SoundArchive::GroupItemInfo *info) const
 
bool ReadGroupInfo (ulong groupId, SoundArchive::GroupInfo *info) const
 
bool ReadFileInfo (ulong fileId, SoundArchive::FileInfo *info) const
 
bool ReadFilePos (ulong fileId, ulong index, SoundArchive::FilePos *filePos) const
 
ulong ConvertLabelStringToId (SoundArchiveFile::StringTree const *tree, char const *str) const
 
const char * GetSoundLabelString (ulong id) const
 
ulong GetSoundUserParam (ulong id) const
 
ulong ConvertLabelStringToSoundId (const char *pLabel) const
 
ulong ConvertLabelStringToPlayerId (const char *pLabel) const
 
ulong ConvertLabelStringToGroupId (const char *pLabel) const
 
ulong ConvertLabelStringToBankId (const char *pLabel) const
 

Static Public Attributes

static u16 const SUPPORTED_FILE_VERSION = NW4R_FILE_VERSION(1, 4)
 

Private Member Functions

SoundArchiveFile::SeqSoundInfo const * impl_GetSeqSoundInfo (ulong soundId) const
 
SoundArchiveFile::StrmSoundInfo const * impl_GetStrmSoundInfo (ulong soundId) const
 
SoundArchiveFile::WaveSoundInfo const * impl_GetWaveSoundInfo (ulong soundId) const
 
SoundArchiveFile::SoundCommonInfo const * impl_GetSoundInfo (ulong soundId) const
 
bool impl_GetSoundInfoOffset (ulong soundId, SoundArchiveFile::SoundInfoRef *soundInfoRef) const
 
SoundArchiveFile::BankInfo const * impl_GetBankInfo (ulong bankId) const
 
SoundArchiveFile::PlayerInfo const * impl_GetPlayerInfo (ulong playerId) const
 
SoundArchiveFile::GroupInfo const * impl_GetGroupInfo (ulong groupId) const
 

Static Private Member Functions

static bool IsValidFileHeader (void const *soundArchiveData)
 

Private Attributes

SoundArchiveFile::Header mHeader
 
SoundArchiveFile::Info const * mInfo
 
void const * mStringBase
 
SoundArchiveFile::StringTable const * mStringTable
 
SoundArchiveFile::StringTree const * mStringTreeSound
 
SoundArchiveFile::StringTree const * mStringTreePlayer
 
SoundArchiveFile::StringTree const * mStringTreeGroup
 
SoundArchiveFile::StringTree const * mStringTreeBank
 

Constructor & Destructor Documentation

◆ ~SoundArchiveFileReader()

nw4r::snd::detail::SoundArchiveFileReader::~SoundArchiveFileReader ( )
inline

Definition at line 287 of file snd_SoundArchiveFile.h.

Member Function Documentation

◆ GetVersion()

u16 nw4r::snd::detail::SoundArchiveFileReader::GetVersion ( ) const
inline

Definition at line 292 of file snd_SoundArchiveFile.h.

◆ GetLabelStringChunkOffset()

ulong nw4r::snd::detail::SoundArchiveFileReader::GetLabelStringChunkOffset ( ) const
inline

Definition at line 293 of file snd_SoundArchiveFile.h.

◆ GetLabelStringChunkSize()

ulong nw4r::snd::detail::SoundArchiveFileReader::GetLabelStringChunkSize ( ) const
inline

Definition at line 297 of file snd_SoundArchiveFile.h.

◆ GetInfoChunkOffset()

ulong nw4r::snd::detail::SoundArchiveFileReader::GetInfoChunkOffset ( ) const
inline

Definition at line 298 of file snd_SoundArchiveFile.h.

◆ GetInfoChunkSize()

ulong nw4r::snd::detail::SoundArchiveFileReader::GetInfoChunkSize ( ) const
inline

Definition at line 299 of file snd_SoundArchiveFile.h.

◆ GetPtrConst()

void const * nw4r::snd::detail::SoundArchiveFileReader::GetPtrConst ( void const * base,
ulong offset ) const
inline

Definition at line 308 of file snd_SoundArchiveFile.h.

◆ ConvertLabelStringToSoundId()

ulong nw4r::snd::detail::SoundArchiveFileReader::ConvertLabelStringToSoundId ( const char * pLabel) const
inline

Definition at line 347 of file snd_SoundArchiveFile.h.

◆ ConvertLabelStringToPlayerId()

ulong nw4r::snd::detail::SoundArchiveFileReader::ConvertLabelStringToPlayerId ( const char * pLabel) const
inline

Definition at line 350 of file snd_SoundArchiveFile.h.

◆ ConvertLabelStringToGroupId()

ulong nw4r::snd::detail::SoundArchiveFileReader::ConvertLabelStringToGroupId ( const char * pLabel) const
inline

Definition at line 353 of file snd_SoundArchiveFile.h.

◆ ConvertLabelStringToBankId()

ulong nw4r::snd::detail::SoundArchiveFileReader::ConvertLabelStringToBankId ( const char * pLabel) const
inline

Definition at line 356 of file snd_SoundArchiveFile.h.

Member Data Documentation

◆ SUPPORTED_FILE_VERSION

u16 const nw4r::snd::detail::SoundArchiveFileReader::SUPPORTED_FILE_VERSION = NW4R_FILE_VERSION(1, 4)
static

Definition at line 384 of file snd_SoundArchiveFile.h.

◆ mHeader

SoundArchiveFile::Header nw4r::snd::detail::SoundArchiveFileReader::mHeader
private

Definition at line 388 of file snd_SoundArchiveFile.h.

◆ mInfo

SoundArchiveFile::Info const* nw4r::snd::detail::SoundArchiveFileReader::mInfo
private

Definition at line 389 of file snd_SoundArchiveFile.h.

◆ mStringBase

void const* nw4r::snd::detail::SoundArchiveFileReader::mStringBase
private

Definition at line 390 of file snd_SoundArchiveFile.h.

◆ mStringTable

SoundArchiveFile::StringTable const* nw4r::snd::detail::SoundArchiveFileReader::mStringTable
private

Definition at line 391 of file snd_SoundArchiveFile.h.

◆ mStringTreeSound

SoundArchiveFile::StringTree const* nw4r::snd::detail::SoundArchiveFileReader::mStringTreeSound
private

Definition at line 392 of file snd_SoundArchiveFile.h.

◆ mStringTreePlayer

SoundArchiveFile::StringTree const* nw4r::snd::detail::SoundArchiveFileReader::mStringTreePlayer
private

Definition at line 393 of file snd_SoundArchiveFile.h.

◆ mStringTreeGroup

SoundArchiveFile::StringTree const* nw4r::snd::detail::SoundArchiveFileReader::mStringTreeGroup
private

Definition at line 394 of file snd_SoundArchiveFile.h.

◆ mStringTreeBank

SoundArchiveFile::StringTree const* nw4r::snd::detail::SoundArchiveFileReader::mStringTreeBank
private

Definition at line 395 of file snd_SoundArchiveFile.h.