Files
tp/src/revolution/homebuttonLib/nw4hbm/snd/MemorySoundArchive.h
T
TakaRikka 8185d87f85 copy homebuttonLib from oot-vc (#2960)
* 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
2025-12-16 16:55:07 +02:00

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