NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
nw4r::snd::DvdSoundArchive Class Reference
Inheritance diagram for nw4r::snd::DvdSoundArchive:
[legend]

Description

Definition at line 25 of file snd_DvdSoundArchive.h.

Public Member Functions

virtual const void * detail_GetFileAddress (ulong) const
 
virtual const void * detail_GetWaveDataFileAddress (ulong) const
 
virtual int detail_GetRequiredStreamBufferSize () const
 
virtual ut::FileStreamOpenStream (void *pBuffer, int size, ulong offset, ulong length) const
 
virtual ut::FileStreamOpenExtStream (void *pBuffer, int size, const char *pExtPath, ulong offset, ulong length) const
 
bool Open (s32 entrynum)
 
bool Open (const char *pPath)
 
void Close ()
 
bool LoadHeader (void *pBuffer, ulong size)
 
bool LoadLabelStringData (void *pBuffer, ulong size)
 
ulong GetHeaderSize () const
 
ulong GetLabelStringDataSize () const
 
- Public Member Functions inherited from nw4r::snd::SoundArchive
void Setup (detail::SoundArchiveFileReader *fileReader)
 
void Shutdown ()
 
ulong GetPlayerCount () const
 
ulong GetGroupCount () const
 
bool IsAvailable () const
 
SoundType GetSoundType (ulong soundId) const
 
const char * GetSoundLabelString (ulong id) const
 
ulong ConvertLabelStringToSoundId (char const *label) const
 
ulong ConvertLabelStringToPlayerId (const char *pLabel) const
 
ulong ConvertLabelStringToGroupId (const char *pLabel) const
 
ulong ConvertLabelStringToBankId (const char *pLabel) const
 
ulong GetSoundUserParam (ulong id) const
 
bool ReadSoundInfo (ulong soundId, SoundInfo *info) const
 
bool ReadSeqSoundInfo (ulong soundId, SeqSoundInfo *info) const
 
bool detail_ReadStrmSoundInfo (ulong soundId, StrmSoundInfo *info) const
 
bool detail_ReadWaveSoundInfo (ulong soundId, WaveSoundInfo *info) const
 
bool ReadPlayerInfo (ulong playerId, PlayerInfo *info) const
 
bool ReadSoundArchivePlayerInfo (SoundArchivePlayerInfo *info) const
 
bool detail_ReadSound3DParam (ulong soundId, nw4r::snd::SoundArchive::Sound3DParam *) const
 
bool ReadBankInfo (ulong bankId, BankInfo *info) const
 
bool detail_ReadGroupInfo (ulong groupId, GroupInfo *info) const
 
bool detail_ReadGroupItemInfo (ulong groupId, ulong index, GroupItemInfo *info) const
 
ulong detail_GetFileCount () const
 
bool detail_ReadFileInfo (ulong fileId, FileInfo *info) const
 
bool detail_ReadFilePos (ulong fileId, ulong index, FilePos *info) const
 
ut::FileStreamdetail_OpenFileStream (ulong fileId, void *buffer, int size) const
 
ut::FileStreamdetail_OpenGroupStream (ulong id, void *pBuffer, int bufferSize) const
 
ut::FileStreamdetail_OpenGroupWaveDataStream (ulong id, void *pBuffer, int bufferSize) const
 
void SetExternalFileRoot (const char *pExtFileRoot)
 

Private Member Functions

bool LoadFileHeader ()
 

Private Attributes

detail::SoundArchiveFileReader mFileReader
 
DVDFileInfo mFileInfo
 
bool mOpen
 

Additional Inherited Members

- Public Types inherited from nw4r::snd::SoundArchive
enum  SoundType {
  SOUND_TYPE_INVALID ,
  SOUND_TYPE_SEQ ,
  SOUND_TYPE_STRM ,
  SOUND_TYPE_WAVE
}
 
- Static Public Attributes inherited from nw4r::snd::SoundArchive
static int const FILE_PATH_MAX = 255
 
static ulong const INVALID_ID = -1
 

Member Function Documentation

◆ detail_GetFileAddress()

virtual const void * nw4r::snd::DvdSoundArchive::detail_GetFileAddress ( ulong ) const
inlinevirtual

Implements nw4r::snd::SoundArchive.

Definition at line 32 of file snd_DvdSoundArchive.h.

◆ detail_GetWaveDataFileAddress()

virtual const void * nw4r::snd::DvdSoundArchive::detail_GetWaveDataFileAddress ( ulong ) const
inlinevirtual

Implements nw4r::snd::SoundArchive.

Definition at line 36 of file snd_DvdSoundArchive.h.

◆ detail_GetRequiredStreamBufferSize()

virtual int nw4r::snd::DvdSoundArchive::detail_GetRequiredStreamBufferSize ( ) const
virtual

◆ OpenStream()

virtual ut::FileStream * nw4r::snd::DvdSoundArchive::OpenStream ( void * pBuffer,
int size,
ulong offset,
ulong length ) const
virtual

◆ OpenExtStream()

virtual ut::FileStream * nw4r::snd::DvdSoundArchive::OpenExtStream ( void * pBuffer,
int size,
const char * pExtPath,
ulong offset,
ulong length ) const
virtual

◆ GetHeaderSize()

ulong nw4r::snd::DvdSoundArchive::GetHeaderSize ( ) const
inline

Definition at line 58 of file snd_DvdSoundArchive.h.

◆ GetLabelStringDataSize()

ulong nw4r::snd::DvdSoundArchive::GetLabelStringDataSize ( ) const
inline

Definition at line 61 of file snd_DvdSoundArchive.h.

Member Data Documentation

◆ mFileReader

detail::SoundArchiveFileReader nw4r::snd::DvdSoundArchive::mFileReader
private

Definition at line 69 of file snd_DvdSoundArchive.h.

◆ mFileInfo

DVDFileInfo nw4r::snd::DvdSoundArchive::mFileInfo
private

Definition at line 70 of file snd_DvdSoundArchive.h.

◆ mOpen

bool nw4r::snd::DvdSoundArchive::mOpen
private

Definition at line 71 of file snd_DvdSoundArchive.h.