Add dead code from LegoCacheSound (#1667)

* Dead code from LegoCacheSound

* Use windef.h typedefs
This commit is contained in:
MS
2025-08-05 22:57:17 -04:00
committed by GitHub
parent f381d692d0
commit 48b922d8f0
2 changed files with 41 additions and 0 deletions

View File

@@ -12,6 +12,7 @@
class LegoCacheSound : public MxCore {
public:
LegoCacheSound();
LegoCacheSound(LegoCacheSound& p_sound);
~LegoCacheSound() override; // vtable+0x00
// FUNCTION: LEGO1 0x10006580
@@ -48,6 +49,10 @@ public:
void SetDistance(MxS32 p_min, MxS32 p_max);
void MuteSilence(MxBool p_muted);
void MuteStop(MxBool p_mute);
MxResult GetFrequency(LPDWORD p_freq);
MxResult SetFrequency(DWORD p_freq);
LegoCacheSound& operator=(LegoCacheSound& p_sound);
void CopyFrom(LegoCacheSound& p_sound);
// SYNTHETIC: LEGO1 0x10006610
// SYNTHETIC: BETA10 0x100675b0

View File

@@ -317,6 +317,42 @@ void LegoCacheSound::MuteStop(MxBool p_muted)
}
}
// FUNCTION: BETA10 0x10066f4d
MxResult LegoCacheSound::GetFrequency(LPDWORD p_freq)
{
return m_dsBuffer->GetFrequency(p_freq);
}
// FUNCTION: BETA10 0x10066f7b
MxResult LegoCacheSound::SetFrequency(DWORD p_freq)
{
return m_dsBuffer->SetFrequency(p_freq);
}
// FUNCTION: BETA10 0x10066fa9
LegoCacheSound::LegoCacheSound(LegoCacheSound& p_sound)
{
CopyFrom(p_sound);
}
// FUNCTION: BETA10 0x10067062
LegoCacheSound& LegoCacheSound::operator=(LegoCacheSound& p_sound)
{
if (this == &p_sound) {
return *this;
}
CopyFrom(p_sound);
return *this;
}
// FUNCTION: BETA10 0x1006709d
void LegoCacheSound::CopyFrom(LegoCacheSound& p_sound)
{
MessageBox(NULL, "don't know how to copy DirectSoundBuffer", NULL, MB_OK);
assert(0);
}
// FUNCTION: LEGO1 0x10006d80
// FUNCTION: BETA10 0x100670e7
MxString LegoCacheSound::GetBaseFilename(MxString& p_path)