snd_SoundArchivePlayer not OK (instruction scheduling)

This commit is contained in:
robojumper
2025-05-26 23:50:15 +02:00
parent 62b35d8629
commit b4a79946bf
4 changed files with 42 additions and 6 deletions
+6 -2
View File
@@ -55,8 +55,8 @@ namespace nw4r { namespace snd
public:
// virtual function ordering
// vtable SoundArchivePlayer_FileManager
virtual void const *at_0x08(int) = 0;
virtual void const *at_0x0c(int) = 0;
virtual void const *GetFileAddress(u32) = 0;
virtual void const *GetFileWaveDataAddress(u32) = 0;
// members
private:
@@ -98,6 +98,8 @@ namespace nw4r { namespace snd
{
}
virtual ~SeqNoteOnCallback() {}
// virtual function ordering
// vtable NoteOnCallback
virtual detail::Channel *NoteOn(
@@ -176,6 +178,8 @@ namespace nw4r { namespace snd
return LoadGroup(static_cast<u32>(id), pAllocatable, blockSize);
}
bool IsLoadedGroup(u32 groupId) const;
SoundArchive const &GetSoundArchive() const;
u32 GetSoundPlayerCount() const { return mSoundPlayerCount; }
SoundPlayer &GetSoundPlayer(u32 playerId);