mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-22 05:49:01 -04:00
project cleanup (#2895)
* some wii OS fixes * remove old dol2asm comments * remove dol2asm.h * remove function address comments * normalize ATTRIBUTE_ALIGN usage * DECL_WEAK macro * fix gcc attribute weak macro * wrap more mwcc specific things in ifdefs * fixes * fix revo sdk version flags * fixes
This commit is contained in:
@@ -1,8 +1,3 @@
|
||||
//
|
||||
// Generated By: dol2asm
|
||||
// Translation Unit: JASAudioReseter
|
||||
//
|
||||
|
||||
#include "JSystem/JSystem.h" // IWYU pragma: keep
|
||||
|
||||
#include "JSystem/JAudio2/JASAudioReseter.h"
|
||||
@@ -12,14 +7,13 @@
|
||||
#include "dolphin/types.h"
|
||||
|
||||
struct JASDSPChannel {
|
||||
/* 8029D340 */ void drop();
|
||||
/* 8029D948 */ static JASDSPChannel* getHandle(u32);
|
||||
void drop();
|
||||
static JASDSPChannel* getHandle(u32);
|
||||
|
||||
inline u32 getStatus() {return mStatus;}
|
||||
u32 mStatus;
|
||||
};
|
||||
|
||||
/* 8029D0B4-8029D0FC 2979F4 0048+00 0/0 1/1 0/0 .text __ct__15JASAudioReseterFv */
|
||||
JASAudioReseter::JASAudioReseter() {
|
||||
field_0x0 = 0;
|
||||
mIsDone = true;
|
||||
@@ -27,10 +21,8 @@ JASAudioReseter::JASAudioReseter() {
|
||||
mDSPLevel = JASDriver::getDSPLevel();
|
||||
}
|
||||
|
||||
/* 8029D0FC-8029D138 297A3C 003C+00 0/0 1/1 0/0 .text __dt__15JASAudioReseterFv */
|
||||
JASAudioReseter::~JASAudioReseter() {}
|
||||
|
||||
/* 8029D138-8029D1D4 297A78 009C+00 0/0 1/1 0/0 .text start__15JASAudioReseterFUlb */
|
||||
bool JASAudioReseter::start(u32 param_0, bool param_1) {
|
||||
if (mIsDone == false) {
|
||||
return false;
|
||||
@@ -47,18 +39,15 @@ bool JASAudioReseter::start(u32 param_0, bool param_1) {
|
||||
}
|
||||
}
|
||||
|
||||
/* 8029D1D4-8029D1F8 297B14 0024+00 0/0 1/1 0/0 .text resume__15JASAudioReseterFv */
|
||||
void JASAudioReseter::resume() {
|
||||
JASDriver::setDSPLevel(mDSPLevel);
|
||||
}
|
||||
|
||||
/* 8029D1F8-8029D200 297B38 0008+00 0/0 2/2 0/0 .text checkDone__15JASAudioReseterCFv */
|
||||
s32 JASAudioReseter::checkDone() const {
|
||||
return mIsDone;
|
||||
}
|
||||
|
||||
|
||||
/* 8029D200-8029D2D4 297B40 00D4+00 1/1 0/0 0/0 .text calc__15JASAudioReseterFv */
|
||||
s32 JASAudioReseter::calc() {
|
||||
if(field_0x0==0) {
|
||||
for(size_t i = 0; i<64; i++) {
|
||||
@@ -80,7 +69,6 @@ s32 JASAudioReseter::calc() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* 8029D2D4-8029D2F4 297C14 0020+00 1/1 0/0 0/0 .text callback__15JASAudioReseterFPv */
|
||||
s32 JASAudioReseter::callback(void* param_0) {
|
||||
return ((JASAudioReseter*)param_0)->calc();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user