Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
NandSoundArchive.h
Go to the documentation of this file.
1#ifndef NW4HBM_SND_NAND_SOUND_ARCHIVE_H
2#define NW4HBM_SND_NAND_SOUND_ARCHIVE_H
3
4#include <revolution/nand.h>
5#include "../ut/FileStream.h"
6#include "SoundArchive.h"
7#include "SoundArchiveFile.h"
8
9namespace nw4hbm {
10 namespace snd {
11
13 private:
14 class NandFileStream;
15
16 public:
18
19 /* 0x08 */ virtual ~NandSoundArchive();
20 /* 0x0C */ virtual const void* detail_GetFileAddress(u32 id) const { return NULL; }
21 /* 0x10 */ virtual const void* detail_GetWaveDataFileAddress(u32 id) const {
22 return NULL;
23 }
24 /* 0x14 */ virtual int detail_GetRequiredStreamBufferSize() const;
25 /* 0x18 */ virtual ut::FileStream* OpenStream(void* buffer, int size, u32 offset,
26 u32 length) const;
27 /* 0x1C */ virtual ut::FileStream* OpenExtStream(void* buffer, int size,
28 const char* extPath, u32 offset,
29 u32 length) const;
30
31 bool Open(const char* path);
32 void Close();
33
34 bool LoadHeader(void* buffer, u32 size);
36
39
40 private:
41 bool LoadFileHeader() NO_INLINE;
42
43 private:
44 /* 0x108 */ detail::SoundArchiveFileReader mFileReader;
46 /* 0x1D8 */ bool mOpen;
47 };
48
49 } // namespace snd
50} // namespace nw4hbm
51
52#endif
static s32 offset
Definition WUD.c:1669
Definition NandSoundArchive.h:12
virtual ut::FileStream * OpenStream(void *buffer, int size, u32 offset, u32 length) const
virtual const void * detail_GetFileAddress(u32 id) const
Definition NandSoundArchive.h:20
bool LoadFileHeader() NO_INLINE
bool LoadHeader(void *buffer, u32 size)
bool Open(const char *path)
NANDFileInfo mFileInfo
Definition NandSoundArchive.h:45
detail::SoundArchiveFileReader mFileReader
Definition NandSoundArchive.h:44
bool mOpen
Definition NandSoundArchive.h:46
virtual int detail_GetRequiredStreamBufferSize() const
bool LoadLabelStringData(void *buffer, u32 size)
u32 GetHeaderSize() const
Definition NandSoundArchive.h:37
u32 GetLabelStringDataSize() const
Definition NandSoundArchive.h:38
virtual const void * detail_GetWaveDataFileAddress(u32 id) const
Definition NandSoundArchive.h:21
virtual ut::FileStream * OpenExtStream(void *buffer, int size, const char *extPath, u32 offset, u32 length) const
Definition SoundArchive.h:23
u32 GetInfoChunkSize() const
Definition SoundArchiveFile.h:251
u32 GetLabelStringChunkSize() const
Definition SoundArchiveFile.h:248
Definition FileStream.h:9
static OSTime buffer
Definition ai.c:24
unsigned int size
Definition __os.h:106
unsigned long u32
Definition types.h:12
Definition HBMAnmController.h:6
Definition nand.h:60
Definition d_a_npc_ks.cpp:47