Split 2 of 2 from #815. Removes the invented 'Sample' class. The EGG_AUDIO_EXPMGR_NO_INLINE_VIRTUALS gates (ArcPlayerMgr 9 virtuals, SoundHeapMgr loadState/getCurrentLevel, nw4r AutoLock ct/dt) reproduce orig's .o emit set exactly: same 8 .text symbols at the same offsets plus __vt__ at .data+0/0x78. Stays Equivalent: orig orders the secondary-vtable thunks [@52@dt][@52@calc] while MWCC emits [@52@calc][@52@dt] here, and orig emits them GLOBAL while ours are WEAK. Verified across 6 other orig units that thunk order follows most-derived declared-virtual order; the only lever found that flips it is a second ODR-used derived class's vtable build - invented code, rejected. See tools/decomp-assist/linkgap-audio.attempts.md. Co-authored-by: devin <devin@cognition.ai> Co-authored-by: coah80 <usernamecole7@gmail.com>
33 lines
849 B
C++
33 lines
849 B
C++
#define EGG_AUDIO_EXPMGR_NO_INLINE_VIRTUALS
|
|
|
|
#include <egg/core.h>
|
|
|
|
namespace EGG {
|
|
SimpleAudioMgrWithFx::SimpleAudioMgrWithFx() {
|
|
}
|
|
|
|
SimpleAudioMgrWithFx::~SimpleAudioMgrWithFx() {
|
|
}
|
|
|
|
SimpleAudioMgrWithFx::ArgWithFx::ArgWithFx() : fxArg() {
|
|
// auto generates constructors
|
|
SimpleAudioMgrArg unused0;
|
|
AudioFxMgr::AudioFxMgrArg unused1;
|
|
}
|
|
|
|
void SimpleAudioMgrWithFx::initialize(IAudioMgr::Arg* arg) {
|
|
SimpleAudioMgr::initialize(arg);
|
|
|
|
if (arg != NULL) {
|
|
arg = (IAudioMgr::Arg*)&((ArgWithFx*)arg)->fxArg;
|
|
}
|
|
|
|
initializeFx(&mHeap, (AudioFxMgrArg*)arg);
|
|
|
|
setFxReverbHi(nw4r::snd::AUX_A, AudioFxMgr::getDefaultFxReverbHi());
|
|
setFxChorus(nw4r::snd::AUX_B, AudioFxMgr::getDefaultFxChorus());
|
|
|
|
mHeap.SaveState();
|
|
}
|
|
} // namespace EGG
|