Fix XEBA and Voice::is_end code
This commit is contained in:
@@ -44,8 +44,7 @@ namespace JabyEngine {
|
||||
}
|
||||
|
||||
bool is_end() const {
|
||||
// TODO: Make work in XEBRA
|
||||
return SPU_IO::Key::Status.read().is_set(Voice::get_id());
|
||||
return SPU_IO::Voice[Voice::get_id()].adsr_volume.read() == SimpleVolume::mute();
|
||||
}
|
||||
};
|
||||
|
||||
|
@@ -35,14 +35,14 @@ namespace JabyEngine {
|
||||
|
||||
#pragma pack(push, 1)
|
||||
struct Voice {
|
||||
SweepVolumeIO volumeLeft; //Offset: 0x0
|
||||
SweepVolumeIO volumeRight; //Offset: 0x2
|
||||
SampleRateIO sampleRate; //Offset: 0x4;
|
||||
SRAMAdrIO adr; //Offset: 0x6
|
||||
ADIO ad; //Offset: 0x8
|
||||
SRIO sr; //Offset: 0xA
|
||||
SimpleVolumeIO currentVolume; //Offset: 0xC
|
||||
SRAMAdrIO repeatAdr; //Offset: 0xE
|
||||
SweepVolumeIO volumeLeft; //Offset: 0x0
|
||||
SweepVolumeIO volumeRight; //Offset: 0x2
|
||||
SampleRateIO sampleRate; //Offset: 0x4;
|
||||
SRAMAdrIO adr; //Offset: 0x6
|
||||
ADIO ad; //Offset: 0x8
|
||||
SRIO sr; //Offset: 0xA
|
||||
SimpleVolumeIO adsr_volume; //Offset: 0xC
|
||||
SRAMAdrIO repeatAdr; //Offset: 0xE
|
||||
};
|
||||
#pragma pack(pop)
|
||||
|
||||
|
Reference in New Issue
Block a user