mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-25 15:05:06 -04:00
38c006fa0e
Not tested because I can't even get the code to init again due to the aforementioned race condition
37 lines
796 B
C
37 lines
796 B
C
#ifndef JAUSTREAMFILETABLE_H
|
|
#define JAUSTREAMFILETABLE_H
|
|
|
|
#include "JSystem/JAudio2/JAIStreamDataMgr.h"
|
|
|
|
struct BinaryStreamFileTable {
|
|
/* 0x0 */ u8 mIdentifier[4];
|
|
/* 0x4 */ BE(u32) mNumFiles;
|
|
/* 0x8 */ BE(int) mFilePathOffsets[];
|
|
};
|
|
|
|
/**
|
|
* @ingroup jsystem-jaudio
|
|
*
|
|
*/
|
|
struct JAUStreamFileTable {
|
|
JAUStreamFileTable();
|
|
void init(void const*);
|
|
u32 getNumFiles() const;
|
|
const char* getFilePath(int) const;
|
|
|
|
bool isValid() { return mData; }
|
|
|
|
/* 0x0 */ const BinaryStreamFileTable* mData;
|
|
};
|
|
|
|
/**
|
|
* @ingroup jsystem-jaudio
|
|
*
|
|
*/
|
|
struct JAUStreamDataMgr_StreamFileTable : public JAIStreamDataMgr, JAUStreamFileTable {
|
|
virtual s32 getStreamFileEntry(JAISoundID);
|
|
virtual ~JAUStreamDataMgr_StreamFileTable() {}
|
|
};
|
|
|
|
#endif /* JAUSTREAMFILETABLE_H */
|