mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-21 21:40:32 -04:00
JAUStreamFileTable
This commit is contained in:
@@ -10,17 +10,23 @@
|
||||
|
||||
class JAISoundID {
|
||||
public:
|
||||
operator u32() const { return this->mId; }
|
||||
void operator=(JAISoundID const& other) {mId = other.mId;};
|
||||
operator u32() const { return this->mId.mId; }
|
||||
void operator=(JAISoundID const& other) {mId.mId = other.mId.mId;};
|
||||
|
||||
JAISoundID(u32 pId) { mId = pId; };
|
||||
JAISoundID(u32 pId) { mId.mId = pId; };
|
||||
|
||||
JAISoundID(JAISoundID const& other) {mId = other.mId;};
|
||||
|
||||
JAISoundID() {}
|
||||
|
||||
private:
|
||||
u32 mId;
|
||||
union {
|
||||
u32 mId;
|
||||
struct {
|
||||
u16 mSoundType;
|
||||
u16 mShortId;
|
||||
}mAdvancedId; //Debug doesn't have an inline for referencing the short ID so I assume it's similar to this
|
||||
} mId;
|
||||
|
||||
};
|
||||
|
||||
struct JASTrack {
|
||||
|
||||
@@ -1,6 +1,32 @@
|
||||
#ifndef JAUSTREAMFILETABLE_H
|
||||
#define JAUSTREAMFILETABLE_H
|
||||
|
||||
#include "JSystem/JAudio2/JAISound.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
struct BinaryStreamFileTable {
|
||||
/* 0x0 */ char mIdentifier[4];
|
||||
/* 0x4 */ int mNumFiles;
|
||||
/* 0x8 */ int mFilePathOffsets[];
|
||||
};
|
||||
|
||||
struct JAUStreamFileTable {
|
||||
/* 802A7420 */ JAUStreamFileTable();
|
||||
/* 802A742C */ void init(void const*);
|
||||
/* 802A7478 */ int getNumFiles() const;
|
||||
/* 802A7484 */ const char* getFilePath(int) const;
|
||||
/* 0x0 */ const BinaryStreamFileTable* mData;
|
||||
};
|
||||
|
||||
struct JAIStreamDataMgr {
|
||||
/* 802A3AD8 */ ~JAIStreamDataMgr();
|
||||
};
|
||||
|
||||
struct JAUStreamDataMgr_StreamFileTable : JAIStreamDataMgr {
|
||||
/* 802A74AC */ virtual int getStreamFileEntry(JAISoundID);
|
||||
/* 802A74E8 */ virtual ~JAUStreamDataMgr_StreamFileTable(){};
|
||||
|
||||
/* 0x4 */ JAUStreamFileTable mStreamFileTable;
|
||||
};
|
||||
|
||||
#endif /* JAUSTREAMFILETABLE_H */
|
||||
|
||||
Reference in New Issue
Block a user