Dead code from LegoCacheSound

This commit is contained in:
disinvite 2025-08-05 22:23:37 -04:00
parent f381d692d0
commit 374a248771
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 @@ class LegoCacheSound : public MxCore {
void SetDistance(MxS32 p_min, MxS32 p_max);
void MuteSilence(MxBool p_muted);
void MuteStop(MxBool p_mute);
MxResult GetFrequency(MxULong* p_freq);
MxResult SetFrequency(MxULong 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(MxULong* p_freq)
{
return m_dsBuffer->GetFrequency(p_freq);
}
// FUNCTION: BETA10 0x10066f7b
MxResult LegoCacheSound::SetFrequency(MxULong 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)