mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-21 05:34:10 -04:00
various Z2Audio / JAudio debug cleanup (#2876)
* some JAudio work * audio cleanup checkpoint * checkpoint more audio cleanup * fix symbols * more z2 cleanup * fix regression * fix build * some fixes
This commit is contained in:
@@ -1,22 +1,18 @@
|
||||
//
|
||||
// Generated By: dol2asm
|
||||
// Translation Unit: JAISoundHandles
|
||||
//
|
||||
|
||||
#include "JSystem/JSystem.h" // IWYU pragma: keep
|
||||
|
||||
#include "JSystem/JAudio2/JAISoundHandles.h"
|
||||
|
||||
/* 802A2C98-802A2CF4 29D5D8 005C+00 0/0 1/1 0/0 .text
|
||||
* getHandleSoundID__15JAISoundHandlesF10JAISoundID */
|
||||
JAISoundHandle* JAISoundHandles::getHandleSoundID(JAISoundID param_0) {
|
||||
JAISoundHandle* JAISoundHandles::getHandleSoundID(JAISoundID id) {
|
||||
for (int i = 0; i < numHandles_; i++) {
|
||||
if (mSoundHandle[i].isSoundAttached()) {
|
||||
if (JAISoundID(mSoundHandle[i]->soundID) == param_0) {
|
||||
return &mSoundHandle[i];
|
||||
if (handle_[i].isSoundAttached()) {
|
||||
if (handle_[i]->getID() == id) {
|
||||
return &handle_[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -24,9 +20,10 @@ JAISoundHandle* JAISoundHandles::getHandleSoundID(JAISoundID param_0) {
|
||||
*/
|
||||
JAISoundHandle* JAISoundHandles::getFreeHandle() {
|
||||
for (int i = 0; i < numHandles_; i++) {
|
||||
if (!mSoundHandle[i].isSoundAttached()) {
|
||||
return &mSoundHandle[i];
|
||||
if (!handle_[i].isSoundAttached()) {
|
||||
return &handle_[i];
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user