summaryrefslogtreecommitdiff
path: root/include/Z2AudioCS
diff options
context:
space:
mode:
authorTakaRikka <38417346+TakaRikka@users.noreply.github.com>2026-03-30 02:10:42 -0700
committerGitHub <noreply@github.com>2026-03-30 02:10:42 -0700
commit5685fa58c619245cc21eb9a78d2b9e6ab4cc67aa (patch)
tree1e38843572ddb5664d8b9895385a65e8adf39294 /include/Z2AudioCS
parentcb6ee4b21e25cb40a08c0f1effeebda79896a7e5 (diff)
Z2Audio player debug work / fix actor method returns (#3140)
* Z2Audio player debug work * fix actor method returns * wii build fix
Diffstat (limited to 'include/Z2AudioCS')
-rw-r--r--include/Z2AudioCS/SpkTable.h4
-rw-r--r--include/Z2AudioCS/Z2AudioCS.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/Z2AudioCS/SpkTable.h b/include/Z2AudioCS/SpkTable.h
index 8fc12bd735..862fdba3c1 100644
--- a/include/Z2AudioCS/SpkTable.h
+++ b/include/Z2AudioCS/SpkTable.h
@@ -18,10 +18,10 @@ public:
SpkTable(void);
void setResource(void* res);
- inline s32 getName(s32 num) {
+ inline const char* getName(s32 num) {
JUT_ASSERT(0x35, num >= 0);
JUT_ASSERT(0x36, num < mNumOfSound);
- return *(mDataOffsets + num);
+ return (const char*)*(mDataOffsets + num);
}
inline s32 getNumOfSound() const { return mNumOfSound; }
inline bool isValid(void) const { return mIsInitialized; }
diff --git a/include/Z2AudioCS/Z2AudioCS.h b/include/Z2AudioCS/Z2AudioCS.h
index 7d13accabc..694218ab4f 100644
--- a/include/Z2AudioCS/Z2AudioCS.h
+++ b/include/Z2AudioCS/Z2AudioCS.h
@@ -19,7 +19,7 @@ public:
static SpkSoundHandle* getHandleSoundID(s32 soundNum);
static SpkSoundHandle* start(s32 id, s32 chan);
static SpkSoundHandle* startLevel(s32 id, s32 chan);
- static s32 getName(s32 num);
+ static const char* getName(s32 num);
static s32 getNumOfSound(void);
static void stopAll(s32 chan, s32 msec);
static void stop(s32 chan);