mirror of
https://github.com/zeldaret/tp
synced 2026-09-07 03:10:11 -04:00
8185d87f85
* initial copy of hbm from sdk_2009-12-11 * some more nw4hbm cleanup * nw4hbm db mostly done * nw4hbm snd copied from oot-vc * nw4hbm ut copied * nw4hbm lyt copied * nw4hbm copied, mostly matching usa 1.0 * setup nw4hbm debug define * fix HBMDataInfo struct * add rvl sdk card lib
40 lines
1.4 KiB
C++
40 lines
1.4 KiB
C++
#ifndef NW4HBM_SND_MEMORY_SOUND_ARCHIVE_H
|
|
#define NW4HBM_SND_MEMORY_SOUND_ARCHIVE_H
|
|
|
|
#include <revolution/types.h>
|
|
#include "../ut/FileStream.h"
|
|
#include "SoundArchive.h"
|
|
#include "SoundArchiveFile.h"
|
|
|
|
|
|
namespace nw4hbm {
|
|
namespace snd {
|
|
class MemorySoundArchive : public SoundArchive {
|
|
private:
|
|
class MemoryFileStream;
|
|
|
|
public:
|
|
MemorySoundArchive();
|
|
|
|
/* 0x08 */ virtual ~MemorySoundArchive();
|
|
/* 0x0C */ virtual const void* detail_GetFileAddress(u32 id) const;
|
|
/* 0x10 */ virtual const void* detail_GetWaveDataFileAddress(u32 id) const;
|
|
/* 0x14 */ virtual int detail_GetRequiredStreamBufferSize() const;
|
|
/* 0x18 */ virtual ut::FileStream* OpenStream(void* buffer, int size, u32 offset,
|
|
u32 length) const;
|
|
/* 0x1C */ virtual ut::FileStream* OpenExtStream(void* buffer, int size,
|
|
const char* extPath, u32 offset,
|
|
u32 length) const;
|
|
|
|
bool Setup(const void* buffer);
|
|
void Shutdown();
|
|
|
|
private:
|
|
/* 0x108 */ const void* mData;
|
|
/* 0x10C */ detail::SoundArchiveFileReader mFileReader;
|
|
};
|
|
} // namespace snd
|
|
} // namespace nw4hbm
|
|
|
|
#endif
|