mirror of
https://github.com/zeldaret/tww.git
synced 2026-08-17 13:00:01 -04:00
JASSimpleWaveBank
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
#ifndef JASSIMPLEWAVEBANK_H
|
||||
#define JASSIMPLEWAVEBANK_H
|
||||
|
||||
#include "JSystem/JAudio/JASWaveArcLoader.h"
|
||||
#include "JSystem/JAudio/JASWaveBank.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
namespace JASystem {
|
||||
class TSimpleWaveBank : public TWaveBank, TWaveArc {
|
||||
public:
|
||||
class TWaveHandle : public JASystem::TWaveHandle {
|
||||
public:
|
||||
TWaveHandle() { mHeap = NULL; }
|
||||
~TWaveHandle();
|
||||
const TWaveInfo* getWaveInfo() const { return &field_0x4; };
|
||||
const void* getWavePtr() const {
|
||||
if (mHeap->mBase == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
return (u8*)mHeap->mBase + field_0x4.field_0x8;
|
||||
}
|
||||
|
||||
/* 0x04 */ TWaveInfo field_0x4;
|
||||
/* 0x30 */ Kernel::THeap* mHeap;
|
||||
};
|
||||
|
||||
TSimpleWaveBank();
|
||||
~TSimpleWaveBank();
|
||||
void setWaveTableSize(u32);
|
||||
TWaveHandle* getWaveHandle(u32) const;
|
||||
void setWaveInfo(u32, const JASystem::TWaveInfo&);
|
||||
TWaveArc* getWaveArc(int);
|
||||
|
||||
/* 0x7C */ TWaveHandle* mWaveTable;
|
||||
/* 0x80 */ u32 mWaveCount;
|
||||
};
|
||||
}
|
||||
|
||||
#endif /* JASSIMPLEWAVEBANK_H */
|
||||
Reference in New Issue
Block a user