EGG::ExpAudioMgr OK (thanks RootCubed!) (#74)

This commit is contained in:
robojumper
2024-10-20 15:53:23 +02:00
committed by GitHub
parent 01b132f934
commit be06bc04a9
4 changed files with 42 additions and 3 deletions
+4 -1
View File
@@ -1967,9 +1967,12 @@ egg/gfx/eggTextureBuffer.cpp:
.text start:0x804B53F0 end:0x804B59DC
egg/audio/eggAudioArcPlayerMgr.cpp:
.text start:0x804B59E0 end:0x804B6428
.text start:0x804B59E0 end:0x804B641C
.data start:0x8056F2C0 end:0x8056F320
egg/audio/eggAudioExpMgr.cpp:
.text start:0x804B6420 end:0x804B6428
egg/audio/eggAudioHeapMgr.cpp:
.text start:0x804B6430 end:0x804B64A8
+2 -1
View File
@@ -870,7 +870,8 @@ config.libs = [
EGGLib(
"audio",
[
Object(NonMatching, "egg/audio/eggAudioArcPlayerMgr.cpp"),
Object(Matching, "egg/audio/eggAudioArcPlayerMgr.cpp"),
Object(Matching, "egg/audio/eggAudioExpMgr.cpp"),
Object(Matching, "egg/audio/eggAudioHeapMgr.cpp"),
Object(Matching, "egg/audio/eggAudioMgr.cpp"),
Object(Matching, "egg/audio/eggAudioRmtSpeakerMgr.cpp"),
+1 -1
View File
@@ -55,7 +55,7 @@ public:
SimpleAudioMgr();
virtual ~SimpleAudioMgr();
void initialize(EGG::IAudioMgr::Arg *);
void initialize(EGG::IAudioMgr::Arg *) override;
virtual void calc() override;
virtual UNKTYPE *openDvdArchive(const char *, nw4r::snd::SoundHeap *) override; // at 0x10
+35
View File
@@ -0,0 +1,35 @@
#include "egg/audio/eggAudioMgr.h"
// Note: Pretty much this entire file is deadstripped by the linker, but ONE artifact remains:
// The single `EGG::SimpleAudioMgr::@248@calc()` weak function.
// As a result, this file has no corresponding header, and is basically unimplemented.
namespace EGG {
class ExpAudioMgr : public SimpleAudioMgr {
public:
ExpAudioMgr();
virtual ~ExpAudioMgr();
// Do not override calc()
void initialize(EGG::IAudioMgr::Arg *) override;
virtual UNKTYPE *openDvdArchive(const char *, nw4r::snd::SoundHeap *) override; // at 0x10
virtual UNKTYPE *openNandArchive(const char *, nw4r::snd::SoundHeap *) override; // at 0x14
virtual UNKTYPE *setupMemoryArchive(const void *, nw4r::snd::SoundHeap *) override; // at 0x18
virtual void closeArchive() override; // at 0x20
virtual bool loadGroup(unsigned int, nw4r::snd::SoundHeap *, u32) override; // at 0x24
virtual bool loadGroup(int, nw4r::snd::SoundHeap *, u32) override; // at 0x28
virtual bool loadGroup(u32, nw4r::snd::SoundHeap *, u32) override; // at 0x2C
virtual bool loadGroup(const char *, nw4r::snd::SoundHeap *, u32) override; // at 0x30
};
ExpAudioMgr::ExpAudioMgr() {}
ExpAudioMgr::~ExpAudioMgr() {}
} // namespace EGG