layout: restructure into src/ tests/ android/ scripts/ tools/

- extension/src/{port,platform,codepage} -> src/; native_render -> src/host
  (+ dxt, shaders/); libgr2 -> src/gr2; extension/third_party -> third_party
- extension/tests -> tests/port, libgr2/tests -> tests/gr2
- android-native -> android (build.sh, push-client.sh moved in)
- script -> scripts; tools/40250 -> tools/server; oracle -> tools/granny-oracle;
  perf tools -> tools/perf
- all build trees under build/ (native, release, android, port-gate)
- xrender:: CMake aliases -> mt::; port-map ledger impl paths rewritten

No code changes. ctest 15/15, port_gate macos+android PASS, port_map check 0 errors.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shenlei
2026-09-29 19:08:19 +09:00
co-authored by Claude Opus 5.5
parent 70710477cf
commit a46093104c
2817 changed files with 13728 additions and 13744 deletions
+23
View File
@@ -0,0 +1,23 @@
#include "AudioCommands.h"
#include <mutex>
namespace
{
std::mutex g_audio_mutex;
std::vector<AudioCommand> g_audio_commands;
}
void PushAudioCommand(const AudioCommand& cmd)
{
std::lock_guard<std::mutex> lock(g_audio_mutex);
g_audio_commands.push_back(cmd);
}
std::vector<AudioCommand> DrainAudioCommands()
{
std::lock_guard<std::mutex> lock(g_audio_mutex);
std::vector<AudioCommand> out;
out.swap(g_audio_commands);
return out;
}
+36
View File
@@ -0,0 +1,36 @@
#pragma once
#include <string>
#include <vector>
struct AudioCommand
{
enum Type
{
PlaySound2D = 1,
PlaySound3D = 2,
StopSound3D = 3,
StopAllSound3D = 4,
PlayMusic = 5,
FadeOutMusic = 6,
FadeOutAllMusic = 7,
SetSoundVolume = 8,
SetMusicVolume = 9,
FadeInMusic = 10,
FadeLimitOutMusic = 11,
SetSoundVolume3D = 12,
};
Type type = PlaySound2D;
std::string filename;
float x = 0.0f;
float y = 0.0f;
float z = 0.0f;
float volume = 1.0f;
float speed = 0.0f;
int play_count = 1;
int id = 0;
};
void PushAudioCommand(const AudioCommand& cmd);
std::vector<AudioCommand> DrainAudioCommands();
+50
View File
@@ -0,0 +1,50 @@
// Platform skeleton for MilesLib/SoundBase.h (40250 MilesLib/SoundBase.cpp), generated by platform_stub.py.
// Every MT_PLATFORM_STUB() body is unimplemented: replace it with the platform implementation.
#include "MilesLib/Stdafx.h"
#include "MilesLib/SoundBase.h"
#include "../PlatformStub.h"
CSoundBase::CSoundBase()
{
MT_PLATFORM_STUB();
}
CSoundBase::~CSoundBase()
{
MT_PLATFORM_STUB();
}
auto CSoundBase::Initialize() -> void
{
MT_PLATFORM_STUB();
}
auto CSoundBase::Destroy() -> void
{
MT_PLATFORM_STUB();
}
auto CSoundBase::AddFile(DWORD, const char *) -> CSoundData *
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<CSoundData *>();
}
auto CSoundBase::GetFileCRC(const char *) -> DWORD
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<DWORD>();
}
decltype(CSoundBase::ms_iRefCount) CSoundBase::ms_iRefCount{};
decltype(CSoundBase::ms_DIGDriver) CSoundBase::ms_DIGDriver{};
decltype(CSoundBase::ms_pProviderDefault) CSoundBase::ms_pProviderDefault{};
decltype(CSoundBase::ms_ProviderVector) CSoundBase::ms_ProviderVector{};
decltype(CSoundBase::ms_dataMap) CSoundBase::ms_dataMap{};
decltype(CSoundBase::ms_bInitialized) CSoundBase::ms_bInitialized{};
+116
View File
@@ -0,0 +1,116 @@
// Platform skeleton for MilesLib/SoundData.h (40250 MilesLib/SoundData.cpp), generated by platform_stub.py.
// Every MT_PLATFORM_STUB() body is unimplemented: replace it with the platform implementation.
#include "MilesLib/Stdafx.h"
#include "MilesLib/SoundData.h"
#include "../PlatformStub.h"
auto CSoundData::SetPackMode() -> void
{
MT_PLATFORM_STUB();
}
CSoundData::CSoundData()
{
MT_PLATFORM_STUB();
}
CSoundData::~CSoundData()
{
MT_PLATFORM_STUB();
}
auto CSoundData::Assign(const char *) -> void
{
MT_PLATFORM_STUB();
}
auto CSoundData::Get() -> LPVOID
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<LPVOID>();
}
auto CSoundData::GetSize() -> ULONG
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<ULONG>();
}
auto CSoundData::Release() -> void
{
MT_PLATFORM_STUB();
}
auto CSoundData::GetAccessTime() -> DWORD
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<DWORD>();
}
auto CSoundData::GetFileName() -> const char *
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<const char *>();
}
auto CSoundData::SetPlayTime(DWORD) -> void
{
MT_PLATFORM_STUB();
}
auto CSoundData::GetPlayTime() -> DWORD
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<DWORD>();
}
auto CSoundData::ReadFromDisk() -> bool
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<bool>();
}
auto CSoundData::Destroy() -> void
{
MT_PLATFORM_STUB();
}
auto CSoundData::open_callback(const char *, U32 *) -> U32
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<U32>();
}
auto CSoundData::close_callback(U32) -> void
{
MT_PLATFORM_STUB();
}
auto CSoundData::seek_callback(U32, S32, U32) -> S32
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<S32>();
}
auto CSoundData::read_callback(U32, void *, U32) -> U32
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<U32>();
}
auto CSoundData::isSlotIndex(DWORD) -> bool
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<bool>();
}
auto CSoundData::GetEmptySlotIndex() -> int
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<int>();
}
decltype(CSoundData::ms_isSoundFile) CSoundData::ms_isSoundFile{};
decltype(CSoundData::ms_SoundFile) CSoundData::ms_SoundFile{};
+256
View File
@@ -0,0 +1,256 @@
// Platform skeleton for MilesLib/SoundInstance.h, generated by platform_stub.py.
// Every MT_PLATFORM_STUB() body is unimplemented: replace it with the platform implementation.
#include "MilesLib/Stdafx.h"
#include "MilesLib/SoundInstance.h"
#include "../PlatformStub.h"
CSoundInstance2D::CSoundInstance2D()
{
MT_PLATFORM_STUB();
}
CSoundInstance2D::~CSoundInstance2D()
{
MT_PLATFORM_STUB();
}
auto CSoundInstance2D::Initialize() -> bool
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<bool>();
}
auto CSoundInstance2D::Destroy() -> void
{
MT_PLATFORM_STUB();
}
auto CSoundInstance2D::SetSound(CSoundData *) -> bool
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<bool>();
}
auto CSoundInstance2D::Play(int, DWORD) const -> void
{
MT_PLATFORM_STUB();
}
auto CSoundInstance2D::Pause() const -> void
{
MT_PLATFORM_STUB();
}
auto CSoundInstance2D::Resume() const -> void
{
MT_PLATFORM_STUB();
}
auto CSoundInstance2D::Stop() -> void
{
MT_PLATFORM_STUB();
}
auto CSoundInstance2D::GetVolume(float &) const -> void
{
MT_PLATFORM_STUB();
}
auto CSoundInstance2D::SetVolume(float) const -> void
{
MT_PLATFORM_STUB();
}
auto CSoundInstance2D::IsDone() const -> bool
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<bool>();
}
auto CSoundInstance2D::SetPosition(float, float, float) const -> void
{
MT_PLATFORM_STUB();
}
auto CSoundInstance2D::SetOrientation(float, float, float, float, float, float) const -> void
{
MT_PLATFORM_STUB();
}
auto CSoundInstance2D::SetVelocity(float, float, float, float) const -> void
{
MT_PLATFORM_STUB();
}
CSoundInstance3D::CSoundInstance3D()
{
MT_PLATFORM_STUB();
}
CSoundInstance3D::~CSoundInstance3D()
{
MT_PLATFORM_STUB();
}
auto CSoundInstance3D::Initialize() -> bool
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<bool>();
}
auto CSoundInstance3D::Destroy() -> void
{
MT_PLATFORM_STUB();
}
auto CSoundInstance3D::SetSound(CSoundData *) -> bool
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<bool>();
}
auto CSoundInstance3D::Play(int, DWORD) const -> void
{
MT_PLATFORM_STUB();
}
auto CSoundInstance3D::Pause() const -> void
{
MT_PLATFORM_STUB();
}
auto CSoundInstance3D::Resume() const -> void
{
MT_PLATFORM_STUB();
}
auto CSoundInstance3D::Stop() -> void
{
MT_PLATFORM_STUB();
}
auto CSoundInstance3D::GetVolume(float &) const -> void
{
MT_PLATFORM_STUB();
}
auto CSoundInstance3D::SetVolume(float) const -> void
{
MT_PLATFORM_STUB();
}
auto CSoundInstance3D::IsDone() const -> bool
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<bool>();
}
auto CSoundInstance3D::SetPosition(float, float, float) const -> void
{
MT_PLATFORM_STUB();
}
auto CSoundInstance3D::SetOrientation(float, float, float, float, float, float) const -> void
{
MT_PLATFORM_STUB();
}
auto CSoundInstance3D::SetVelocity(float, float, float, float) const -> void
{
MT_PLATFORM_STUB();
}
auto CSoundInstance3D::UpdatePosition(float) -> void
{
MT_PLATFORM_STUB();
}
CSoundInstanceStream::CSoundInstanceStream()
{
MT_PLATFORM_STUB();
}
CSoundInstanceStream::~CSoundInstanceStream()
{
MT_PLATFORM_STUB();
}
auto CSoundInstanceStream::Initialize() -> bool
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<bool>();
}
auto CSoundInstanceStream::Destroy() -> void
{
MT_PLATFORM_STUB();
}
auto CSoundInstanceStream::SetStream(HSTREAM) -> void
{
MT_PLATFORM_STUB();
}
auto CSoundInstanceStream::SetSound(CSoundData *) -> bool
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<bool>();
}
auto CSoundInstanceStream::Play(int, DWORD) const -> void
{
MT_PLATFORM_STUB();
}
auto CSoundInstanceStream::Pause() const -> void
{
MT_PLATFORM_STUB();
}
auto CSoundInstanceStream::Resume() const -> void
{
MT_PLATFORM_STUB();
}
auto CSoundInstanceStream::Stop() -> void
{
MT_PLATFORM_STUB();
}
auto CSoundInstanceStream::GetVolume(float &) const -> void
{
MT_PLATFORM_STUB();
}
auto CSoundInstanceStream::SetVolume(float) const -> void
{
MT_PLATFORM_STUB();
}
auto CSoundInstanceStream::IsDone() const -> bool
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<bool>();
}
auto CSoundInstanceStream::IsData() const -> bool
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<bool>();
}
auto CSoundInstanceStream::SetPosition(float, float, float) const -> void
{
MT_PLATFORM_STUB();
}
auto CSoundInstanceStream::SetOrientation(float, float, float, float, float, float) const -> void
{
MT_PLATFORM_STUB();
}
auto CSoundInstanceStream::SetVelocity(float, float, float, float) const -> void
{
MT_PLATFORM_STUB();
}
+368
View File
@@ -0,0 +1,368 @@
// Platform implementation of MilesLib/SoundManager.h for port/headless execution.
#include "MilesLib/Stdafx.h"
#include "MilesLib/SoundManager.h"
#include "AudioCommands.h"
#include <cmath>
#include <algorithm>
decltype(CSoundManager::ms_SoundManager2D) CSoundManager::ms_SoundManager2D{};
decltype(CSoundManager::ms_SoundManager3D) CSoundManager::ms_SoundManager3D{};
decltype(CSoundManager::ms_SoundManagerStream) CSoundManager::ms_SoundManagerStream{};
CSoundManager::CSoundManager()
{
m_bInitialized = FALSE;
m_isSoundDisable = FALSE;
m_fxPosition = 0.0f;
m_fyPosition = 0.0f;
m_fzPosition = 0.0f;
m_fSoundScale = 200.0f;
m_fAmbienceSoundScale = 1000.0f;
m_fSoundVolume = 1.0f;
m_fMusicVolume = 1.0f;
m_fBackupMusicVolume = 0.0f;
m_fBackupSoundVolume = 0.0f;
for (int i = 0; i < CSoundManagerStream::MUSIC_INSTANCE_MAX_NUM; ++i)
{
TMusicInstance & rInstance = m_MusicInstances[i];
rInstance.dwMusicFileNameCRC = 0;
rInstance.MusicState = MUSIC_STATE_OFF;
rInstance.fVolume = 0.0f;
rInstance.fLimitVolume = 0.0f;
rInstance.fVolumeSpeed = 0.0f;
}
}
CSoundManager::~CSoundManager()
{
}
BOOL CSoundManager::Create()
{
m_bInitialized = TRUE;
return TRUE;
}
void CSoundManager::Destroy()
{
m_PlaySoundHistoryMap.clear();
m_bInitialized = FALSE;
}
void CSoundManager::SetPosition(float fx, float fy, float fz)
{
m_fxPosition = fx;
m_fyPosition = fy;
m_fzPosition = fz;
}
void CSoundManager::SetDirection(float, float, float, float, float, float)
{
}
void CSoundManager::Update()
{
}
float CSoundManager::GetSoundScale()
{
return m_fSoundScale;
}
void CSoundManager::SetSoundScale(float fScale)
{
m_fSoundScale = fScale;
}
void CSoundManager::SetAmbienceSoundScale(float fScale)
{
m_fAmbienceSoundScale = fScale;
}
float CSoundManager::__ConvertRatioVolumeToApplyVolume(float fRatioVolume)
{
if (0.1f > fRatioVolume)
return fRatioVolume;
return (float)pow(10.0f, (-1.0f + fRatioVolume));
}
float CSoundManager::__ConvertGradeVolumeToApplyVolume(int nGradeVolume)
{
return __ConvertRatioVolumeToApplyVolume(nGradeVolume / 5.0f);
}
void CSoundManager::SetSoundVolume(float fVolume)
{
if (m_isSoundDisable)
{
m_fBackupSoundVolume = fVolume;
return;
}
if (fVolume < 0.0f) fVolume = 0.0f;
if (fVolume > 1.0f) fVolume = 1.0f;
m_fSoundVolume = fVolume;
if (!m_isSoundDisable)
{
m_fBackupSoundVolume = fVolume;
}
AudioCommand cmd;
cmd.type = AudioCommand::SetSoundVolume;
cmd.volume = m_fSoundVolume;
PushAudioCommand(cmd);
}
void CSoundManager::SetSoundVolumeRatio(float fRatio)
{
float fVolume = __ConvertRatioVolumeToApplyVolume(fRatio);
SetSoundVolume(fVolume);
}
void CSoundManager::SetSoundVolumeGrade(int iGrade)
{
float fVolume = __ConvertGradeVolumeToApplyVolume(iGrade);
SetSoundVolume(fVolume);
}
void CSoundManager::__SetMusicVolume(float fVolume)
{
if (m_isSoundDisable)
{
m_fBackupMusicVolume = fVolume;
return;
}
if (fVolume < 0.0f) fVolume = 0.0f;
if (fVolume > 1.0f) fVolume = 1.0f;
m_fMusicVolume = fVolume;
if (!m_isSoundDisable)
{
m_fBackupMusicVolume = fVolume;
}
AudioCommand cmd;
cmd.type = AudioCommand::SetMusicVolume;
cmd.volume = m_fMusicVolume;
PushAudioCommand(cmd);
}
void CSoundManager::SetMusicVolume(float fVolume)
{
__SetMusicVolume(fVolume);
}
void CSoundManager::SetMusicVolumeRatio(float fRatio)
{
float fVolume = __ConvertRatioVolumeToApplyVolume(fRatio);
SetMusicVolume(fVolume);
}
void CSoundManager::SetMusicVolumeGrade(int iGrade)
{
float fVolume = __ConvertGradeVolumeToApplyVolume(iGrade);
SetMusicVolume(fVolume);
}
void CSoundManager::SaveVolume()
{
if (m_isSoundDisable)
return;
const float musicVolume = m_fMusicVolume;
const float soundVolume = m_fSoundVolume;
SetMusicVolume(0.0f);
SetSoundVolume(0.0f);
m_fBackupMusicVolume = musicVolume;
m_fBackupSoundVolume = soundVolume;
m_isSoundDisable = TRUE;
}
void CSoundManager::RestoreVolume()
{
m_isSoundDisable = FALSE;
SetMusicVolume(m_fBackupMusicVolume);
SetSoundVolume(m_fBackupSoundVolume);
}
float CSoundManager::GetSoundVolume()
{
return m_fSoundVolume;
}
float CSoundManager::GetMusicVolume()
{
return m_fMusicVolume;
}
void CSoundManager::PlaySound2D(const char * c_szFileName)
{
if (m_isSoundDisable || !c_szFileName || !c_szFileName[0])
return;
AudioCommand cmd;
cmd.type = AudioCommand::PlaySound2D;
cmd.filename = c_szFileName;
cmd.volume = m_fSoundVolume;
PushAudioCommand(cmd);
}
void CSoundManager::PlaySound3D(float fx, float fy, float fz, const char * c_szFileName, int iPlayCount)
{
if (m_isSoundDisable || !c_szFileName || !c_szFileName[0])
return;
AudioCommand cmd;
cmd.type = AudioCommand::PlaySound3D;
cmd.filename = c_szFileName;
cmd.x = fx;
cmd.y = fy;
cmd.z = fz;
cmd.play_count = iPlayCount;
cmd.volume = m_fSoundVolume;
PushAudioCommand(cmd);
}
void CSoundManager::StopSound3D(int iIndex)
{
AudioCommand cmd;
cmd.type = AudioCommand::StopSound3D;
cmd.id = iIndex;
PushAudioCommand(cmd);
}
int CSoundManager::PlayAmbienceSound3D(float fx, float fy, float fz, const char * c_szFileName, int iPlayCount)
{
if (m_isSoundDisable || !c_szFileName || !c_szFileName[0])
return -1;
static int s_next_id = 1;
int id = s_next_id++;
AudioCommand cmd;
cmd.type = AudioCommand::PlaySound3D;
cmd.filename = c_szFileName;
cmd.x = fx;
cmd.y = fy;
cmd.z = fz;
cmd.play_count = iPlayCount;
cmd.volume = m_fSoundVolume;
cmd.id = id;
PushAudioCommand(cmd);
return id;
}
void CSoundManager::PlayCharacterSound3D(float fx, float fy, float fz, const char * c_szFileName, BOOL)
{
PlaySound3D(fx, fy, fz, c_szFileName, 1);
}
void CSoundManager::SetSoundVolume3D(int index, float volume)
{
AudioCommand cmd;
cmd.type = AudioCommand::SetSoundVolume3D;
cmd.id = index;
cmd.volume = volume;
PushAudioCommand(cmd);
}
void CSoundManager::StopAllSound3D()
{
m_PlaySoundHistoryMap.clear();
AudioCommand cmd;
cmd.type = AudioCommand::StopAllSound3D;
PushAudioCommand(cmd);
}
void CSoundManager::PlayMusic(const char * c_szFileName)
{
if (!c_szFileName || !c_szFileName[0])
return;
AudioCommand cmd;
cmd.type = AudioCommand::PlayMusic;
cmd.filename = c_szFileName;
cmd.volume = m_fMusicVolume;
PushAudioCommand(cmd);
}
void CSoundManager::FadeInMusic(const char * c_szFileName, float speed)
{
if (!c_szFileName || !c_szFileName[0])
return;
AudioCommand cmd;
cmd.type = AudioCommand::FadeInMusic;
cmd.filename = c_szFileName;
cmd.volume = m_fMusicVolume;
cmd.speed = speed;
PushAudioCommand(cmd);
}
void CSoundManager::FadeOutMusic(const char * c_szFileName, float fSpeed)
{
AudioCommand cmd;
cmd.type = AudioCommand::FadeOutMusic;
cmd.filename = c_szFileName ? c_szFileName : "";
cmd.speed = fSpeed;
PushAudioCommand(cmd);
}
void CSoundManager::FadeLimitOutMusic(const char * c_szFileName, float limit, float speed)
{
AudioCommand cmd;
cmd.type = AudioCommand::FadeLimitOutMusic;
cmd.filename = c_szFileName ? c_szFileName : "";
cmd.volume = __ConvertRatioVolumeToApplyVolume(limit);
cmd.speed = speed;
PushAudioCommand(cmd);
}
void CSoundManager::FadeOutAllMusic()
{
AudioCommand cmd;
cmd.type = AudioCommand::FadeOutAllMusic;
PushAudioCommand(cmd);
}
void CSoundManager::FadeAll()
{
FadeOutAllMusic();
}
void CSoundManager::UpdateSoundData(DWORD, const NSound::TSoundDataVector *)
{
}
void CSoundManager::UpdateSoundData(float, float, float, DWORD, const NSound::TSoundDataVector *)
{
}
void CSoundManager::UpdateSoundInstance(float, float, float, DWORD, const NSound::TSoundInstanceVector *, BOOL)
{
}
void CSoundManager::UpdateSoundInstance(DWORD, const NSound::TSoundInstanceVector *)
{
}
void CSoundManager::PlayMusic(DWORD, const char *, float, float)
{
}
void CSoundManager::StopMusic(DWORD)
{
}
BOOL CSoundManager::GetMusicIndex(const char *, DWORD *)
{
return FALSE;
}
BOOL CSoundManager::GetSoundInstance2D(const char *, ISoundInstance **)
{
return FALSE;
}
BOOL CSoundManager::GetSoundInstance3D(const char *, ISoundInstance **)
{
return FALSE;
}
+33
View File
@@ -0,0 +1,33 @@
// Platform skeleton for MilesLib/SoundManager2D.h (40250 MilesLib/SoundManager2D.cpp), generated by platform_stub.py.
// Every MT_PLATFORM_STUB() body is unimplemented: replace it with the platform implementation.
#include "MilesLib/Stdafx.h"
#include "MilesLib/SoundManager2D.h"
#include "../PlatformStub.h"
CSoundManager2D::CSoundManager2D()
{
MT_PLATFORM_STUB();
}
CSoundManager2D::~CSoundManager2D()
{
MT_PLATFORM_STUB();
}
auto CSoundManager2D::Initialize() -> bool
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<bool>();
}
auto CSoundManager2D::Destroy() -> void
{
MT_PLATFORM_STUB();
}
auto CSoundManager2D::GetInstance(const char *) -> ISoundInstance *
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<ISoundInstance *>();
}
+76
View File
@@ -0,0 +1,76 @@
// Platform skeleton for MilesLib/SoundManager3D.h (40250 MilesLib/SoundManager3D.cpp), generated by platform_stub.py.
// Every MT_PLATFORM_STUB() body is unimplemented: replace it with the platform implementation.
#include "MilesLib/Stdafx.h"
#include "MilesLib/SoundManager3D.h"
#include "../PlatformStub.h"
CSoundManager3D::CSoundManager3D()
{
MT_PLATFORM_STUB();
}
CSoundManager3D::~CSoundManager3D()
{
MT_PLATFORM_STUB();
}
auto CSoundManager3D::Initialize() -> bool
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<bool>();
}
auto CSoundManager3D::Destroy() -> void
{
MT_PLATFORM_STUB();
}
auto CSoundManager3D::GetEmptyInstanceIndex() -> int
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<int>();
}
auto CSoundManager3D::SetInstance(const char *) -> int
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<int>();
}
auto CSoundManager3D::GetInstance(DWORD) -> ISoundInstance *
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<ISoundInstance *>();
}
auto CSoundManager3D::SetListenerDirection(float, float, float, float, float, float) -> void
{
MT_PLATFORM_STUB();
}
auto CSoundManager3D::SetListenerPosition(float, float, float) -> void
{
MT_PLATFORM_STUB();
}
auto CSoundManager3D::SetListenerVelocity(float, float, float, float) -> void
{
MT_PLATFORM_STUB();
}
auto CSoundManager3D::Lock(int) -> void
{
MT_PLATFORM_STUB();
}
auto CSoundManager3D::Unlock(int) -> void
{
MT_PLATFORM_STUB();
}
auto CSoundManager3D::IsValidInstanceIndex(int) -> bool
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<bool>();
}
@@ -0,0 +1,45 @@
// Platform skeleton for MilesLib/SoundManagerStream.h (40250 MilesLib/SoundManagerStream.cpp), generated by platform_stub.py.
// Every MT_PLATFORM_STUB() body is unimplemented: replace it with the platform implementation.
#include "MilesLib/Stdafx.h"
#include "MilesLib/SoundManagerStream.h"
#include "../PlatformStub.h"
CSoundManagerStream::CSoundManagerStream()
{
MT_PLATFORM_STUB();
}
CSoundManagerStream::~CSoundManagerStream()
{
MT_PLATFORM_STUB();
}
auto CSoundManagerStream::Initialize() -> bool
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<bool>();
}
auto CSoundManagerStream::Destroy() -> void
{
MT_PLATFORM_STUB();
}
auto CSoundManagerStream::SetInstance(DWORD, const char *) -> bool
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<bool>();
}
auto CSoundManagerStream::GetInstance(DWORD) -> CSoundInstanceStream *
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<CSoundInstanceStream *>();
}
auto CSoundManagerStream::CheckInstanceIndex(DWORD) -> bool
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<bool>();
}
+34
View File
@@ -0,0 +1,34 @@
// Platform skeleton for MilesLib/Type.h (40250 MilesLib/Type.cpp), generated by platform_stub.py.
// Every MT_PLATFORM_STUB() body is unimplemented: replace it with the platform implementation.
#include "MilesLib/Stdafx.h"
#include "MilesLib/Type.h"
#include "../PlatformStub.h"
auto NSound::LoadSoundInformationPiece(const char *, TSoundDataVector &, const char *) -> bool
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<bool>();
}
auto NSound::SaveSoundInformationPiece(const char *, TSoundDataVector &) -> bool
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<bool>();
}
auto NSound::DataToInstance(const TSoundDataVector &, TSoundInstanceVector *) -> void
{
MT_PLATFORM_STUB();
}
auto NSound::GetResultString() -> const char *
{
MT_PLATFORM_STUB();
return mt_platform_stub_return<const char *>();
}
auto NSound::SetResultString(const char *) -> void
{
MT_PLATFORM_STUB();
}