aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/sfx
diff options
context:
space:
mode:
authorEugene Sandulenko2010-08-18 12:57:47 +0000
committerEugene Sandulenko2010-10-12 22:55:59 +0000
commitbe44216e5c1d74879d7843215ce1cd3f488b4db8 (patch)
treecd49961f2fe9b1ea641e2e57d90b3d8a315123ea /engines/sword25/sfx
parent485ff15d23b3ae9545f5c9df794f1326185eae7a (diff)
downloadscummvm-rg350-be44216e5c1d74879d7843215ce1cd3f488b4db8.tar.gz
scummvm-rg350-be44216e5c1d74879d7843215ce1cd3f488b4db8.tar.bz2
scummvm-rg350-be44216e5c1d74879d7843215ce1cd3f488b4db8.zip
SWORD25: eliminated BS_ prefix in all but kernel/
svn-id: r53259
Diffstat (limited to 'engines/sword25/sfx')
-rw-r--r--engines/sword25/sfx/fmodexsound.cpp60
-rw-r--r--engines/sword25/sfx/fmodexsound.h6
-rw-r--r--engines/sword25/sfx/soundengine.cpp2
-rw-r--r--engines/sword25/sfx/soundengine.h6
-rw-r--r--engines/sword25/sfx/soundengine_script.cpp64
5 files changed, 69 insertions, 69 deletions
diff --git a/engines/sword25/sfx/fmodexsound.cpp b/engines/sword25/sfx/fmodexsound.cpp
index d83e78e62b..da0f0f932e 100644
--- a/engines/sword25/sfx/fmodexsound.cpp
+++ b/engines/sword25/sfx/fmodexsound.cpp
@@ -120,8 +120,8 @@ inline FMOD_SOUND_FORMAT BitsPerSampleToFMODExSoundFormat(unsigned int BitsPerSa
#endif
-BS_FMODExSound::BS_FMODExSound(BS_Kernel *pKernel) :
- BS_SoundEngine(pKernel)
+FMODExSound::FMODExSound(BS_Kernel *pKernel) :
+ SoundEngine(pKernel)
/* m_FMOD(0),
m_NextHandle(1) */ {
// Lautstärkeneinstellungen auf die Standardwerte setzen
@@ -134,7 +134,7 @@ BS_FMODExSound::BS_FMODExSound(BS_Kernel *pKernel) :
// -----------------------------------------------------------------------------
-BS_FMODExSound::~BS_FMODExSound() {
+FMODExSound::~FMODExSound() {
#if 0
// Alle noch spielenden Sounds stoppen und die Ressourcen freigeben
for (PSM_ITER it = m_PlayingSoundsMap.begin(); it != m_PlayingSoundsMap.end(); ++it) {
@@ -149,13 +149,13 @@ BS_FMODExSound::~BS_FMODExSound() {
// -----------------------------------------------------------------------------
-BS_Service *BS_FMODExSound_CreateObject(BS_Kernel *pKernel) {
- return new BS_FMODExSound(pKernel);
+BS_Service *FMODExSound_CreateObject(BS_Kernel *pKernel) {
+ return new FMODExSound(pKernel);
}
// -----------------------------------------------------------------------------
-bool BS_FMODExSound::Init(unsigned int SampleRate, unsigned int Channels) {
+bool FMODExSound::Init(unsigned int SampleRate, unsigned int Channels) {
#if 0
// Eine Warnung ausgeben, wenn dieser Service schon initialisiert wurde.
// Allerdings wird trotzdem true zurückgegeben, weil kein Fehler aufgetreten ist, der Service ist noch benutzbar.
@@ -197,7 +197,7 @@ bool BS_FMODExSound::Init(unsigned int SampleRate, unsigned int Channels) {
// -----------------------------------------------------------------------------
-void BS_FMODExSound::Update() {
+void FMODExSound::Update() {
#if 0
BS_ASSERT(m_FMOD);
@@ -212,7 +212,7 @@ void BS_FMODExSound::Update() {
// Sounds abspielen
// -----------------------------------------------------------------------------
-bool BS_FMODExSound::PlaySound(const Common::String &FileName,
+bool FMODExSound::PlaySound(const Common::String &FileName,
SOUND_TYPES Type,
float Volume,
float Pan,
@@ -228,7 +228,7 @@ bool BS_FMODExSound::PlaySound(const Common::String &FileName,
// -----------------------------------------------------------------------------
-unsigned int BS_FMODExSound::PlaySoundEx(const Common::String &FileName,
+unsigned int FMODExSound::PlaySoundEx(const Common::String &FileName,
SOUND_TYPES Type,
float Volume,
float Pan,
@@ -273,7 +273,7 @@ FMOD_RESULT F_CALLBACK BS_FMODExSound::FMODExDynamicSoundReadCallback(FMOD_SOUND
#endif
// -----------------------------------------------------------------------------
-unsigned int BS_FMODExSound::PlayDynamicSoundEx(DynamicSoundReadCallback ReadCallback,
+unsigned int FMODExSound::PlayDynamicSoundEx(DynamicSoundReadCallback ReadCallback,
void *UserData,
SOUND_TYPES Type,
unsigned int SampleRate,
@@ -446,7 +446,7 @@ unsigned int BS_FMODExSound::PlaySoundInternal(const Common::String &FileName,
// Sonstige Methoden
// -----------------------------------------------------------------------------
-void BS_FMODExSound::SetVolume(float Volume, SOUND_TYPES Type) {
+void FMODExSound::SetVolume(float Volume, SOUND_TYPES Type) {
#if 0
BS_ASSERT(m_FMOD);
BS_ASSERT(Type < SOUNDTYPE_COUNT);
@@ -465,7 +465,7 @@ void BS_FMODExSound::SetVolume(float Volume, SOUND_TYPES Type) {
// -----------------------------------------------------------------------------
-float BS_FMODExSound::GetVolume(SOUND_TYPES Type) {
+float FMODExSound::GetVolume(SOUND_TYPES Type) {
#if 0
BS_ASSERT(m_FMOD);
BS_ASSERT(Type < SOUNDTYPE_COUNT);
@@ -477,7 +477,7 @@ float BS_FMODExSound::GetVolume(SOUND_TYPES Type) {
// -----------------------------------------------------------------------------
-void BS_FMODExSound::PauseAll() {
+void FMODExSound::PauseAll() {
#if 0
BS_ASSERT(m_FMOD);
@@ -498,7 +498,7 @@ void BS_FMODExSound::PauseAll() {
// -----------------------------------------------------------------------------
-void BS_FMODExSound::ResumeAll() {
+void FMODExSound::ResumeAll() {
#if 0
BS_ASSERT(m_FMOD);
@@ -520,7 +520,7 @@ void BS_FMODExSound::ResumeAll() {
// -----------------------------------------------------------------------------
-void BS_FMODExSound::PauseLayer(unsigned int Layer) {
+void FMODExSound::PauseLayer(unsigned int Layer) {
#if 0
BS_ASSERT(m_FMOD);
@@ -543,7 +543,7 @@ void BS_FMODExSound::PauseLayer(unsigned int Layer) {
// -----------------------------------------------------------------------------
-void BS_FMODExSound::ResumeLayer(unsigned int Layer) {
+void FMODExSound::ResumeLayer(unsigned int Layer) {
#if 0
BS_ASSERT(m_FMOD);
@@ -567,7 +567,7 @@ void BS_FMODExSound::ResumeLayer(unsigned int Layer) {
// Sound Setter
// -----------------------------------------------------------------------------
-void BS_FMODExSound::SetSoundVolume(unsigned int Handle, float Volume) {
+void FMODExSound::SetSoundVolume(unsigned int Handle, float Volume) {
#if 0
BS_ASSERT(m_FMOD);
PlayingSoundData *PSDPtr = GetPlayingSoundDataByHandle(Handle);
@@ -577,7 +577,7 @@ void BS_FMODExSound::SetSoundVolume(unsigned int Handle, float Volume) {
// -----------------------------------------------------------------------------
-void BS_FMODExSound::SetSoundPanning(unsigned int Handle, float Pan) {
+void FMODExSound::SetSoundPanning(unsigned int Handle, float Pan) {
#if 0
BS_ASSERT(m_FMOD);
PlayingSoundData *PSDPtr = GetPlayingSoundDataByHandle(Handle);
@@ -587,7 +587,7 @@ void BS_FMODExSound::SetSoundPanning(unsigned int Handle, float Pan) {
// -----------------------------------------------------------------------------
-void BS_FMODExSound::PauseSound(unsigned int Handle) {
+void FMODExSound::PauseSound(unsigned int Handle) {
#if 0
BS_ASSERT(m_FMOD);
PlayingSoundData *PSDPtr = GetPlayingSoundDataByHandle(Handle);
@@ -600,7 +600,7 @@ void BS_FMODExSound::PauseSound(unsigned int Handle) {
// -----------------------------------------------------------------------------
-void BS_FMODExSound::ResumeSound(unsigned int Handle) {
+void FMODExSound::ResumeSound(unsigned int Handle) {
#if 0
BS_ASSERT(m_FMOD);
PlayingSoundData *PSDPtr = GetPlayingSoundDataByHandle(Handle);
@@ -613,7 +613,7 @@ void BS_FMODExSound::ResumeSound(unsigned int Handle) {
// -----------------------------------------------------------------------------
-void BS_FMODExSound::StopSound(unsigned int Handle) {
+void FMODExSound::StopSound(unsigned int Handle) {
#if 0
BS_ASSERT(m_FMOD);
PlayingSoundData *PSDPtr = GetPlayingSoundDataByHandle(Handle);
@@ -625,7 +625,7 @@ void BS_FMODExSound::StopSound(unsigned int Handle) {
// Sound Getter
// -----------------------------------------------------------------------------
-bool BS_FMODExSound::IsSoundPaused(unsigned int Handle) {
+bool FMODExSound::IsSoundPaused(unsigned int Handle) {
#if 0
BS_ASSERT(m_FMOD);
PlayingSoundData *PSDPtr = GetPlayingSoundDataByHandle(Handle);
@@ -636,7 +636,7 @@ bool BS_FMODExSound::IsSoundPaused(unsigned int Handle) {
// -----------------------------------------------------------------------------
-bool BS_FMODExSound::IsSoundPlaying(unsigned int Handle) {
+bool FMODExSound::IsSoundPlaying(unsigned int Handle) {
#if 0
BS_ASSERT(m_FMOD);
PlayingSoundData *PSDPtr = GetPlayingSoundDataByHandle(Handle);
@@ -647,7 +647,7 @@ bool BS_FMODExSound::IsSoundPlaying(unsigned int Handle) {
// -----------------------------------------------------------------------------
-float BS_FMODExSound::GetSoundVolume(unsigned int Handle) {
+float FMODExSound::GetSoundVolume(unsigned int Handle) {
#if 0
BS_ASSERT(m_FMOD);
PlayingSoundData *PSDPtr = GetPlayingSoundDataByHandle(Handle);
@@ -658,7 +658,7 @@ float BS_FMODExSound::GetSoundVolume(unsigned int Handle) {
// -----------------------------------------------------------------------------
-float BS_FMODExSound::GetSoundPanning(unsigned int Handle) {
+float FMODExSound::GetSoundPanning(unsigned int Handle) {
#if 0
BS_ASSERT(m_FMOD);
PlayingSoundData *PSDPtr = GetPlayingSoundDataByHandle(Handle);
@@ -669,7 +669,7 @@ float BS_FMODExSound::GetSoundPanning(unsigned int Handle) {
// -----------------------------------------------------------------------------
-float BS_FMODExSound::GetSoundTime(unsigned int Handle) {
+float FMODExSound::GetSoundTime(unsigned int Handle) {
#if 0
BS_ASSERT(m_FMOD);
PlayingSoundData *PSDPtr = GetPlayingSoundDataByHandle(Handle);
@@ -727,7 +727,7 @@ unsigned int BS_FMODExSound::CountPlayingDynamicSounds() {
// Ressourcen-Verwaltung
// -----------------------------------------------------------------------------
-BS_Resource *BS_FMODExSound::LoadResource(const Common::String &FileName) {
+BS_Resource *FMODExSound::LoadResource(const Common::String &FileName) {
#if 0
BS_ASSERT(m_FMOD);
BS_ASSERT(CanLoadResource(FileName));
@@ -744,7 +744,7 @@ BS_Resource *BS_FMODExSound::LoadResource(const Common::String &FileName) {
return 0;
#endif
}
-bool BS_FMODExSound::CanLoadResource(const Common::String &FileName) {
+bool FMODExSound::CanLoadResource(const Common::String &FileName) {
#if 0
if (FileName.size() >= 4) {
Common::String Extension(FileName.end() - 4, FileName.end());
@@ -764,7 +764,7 @@ bool BS_FMODExSound::CanLoadResource(const Common::String &FileName) {
// Persistenz
// -----------------------------------------------------------------------------
-bool BS_FMODExSound::Persist(BS_OutputPersistenceBlock &Writer) {
+bool FMODExSound::Persist(BS_OutputPersistenceBlock &Writer) {
#if 0
BS_ASSERT(m_FMOD);
@@ -815,7 +815,7 @@ bool BS_FMODExSound::Persist(BS_OutputPersistenceBlock &Writer) {
// -----------------------------------------------------------------------------
-bool BS_FMODExSound::Unpersist(BS_InputPersistenceBlock &Reader) {
+bool FMODExSound::Unpersist(BS_InputPersistenceBlock &Reader) {
#if 0
BS_ASSERT(m_FMOD);
diff --git a/engines/sword25/sfx/fmodexsound.h b/engines/sword25/sfx/fmodexsound.h
index 41f82d7b65..988d388a99 100644
--- a/engines/sword25/sfx/fmodexsound.h
+++ b/engines/sword25/sfx/fmodexsound.h
@@ -39,14 +39,14 @@
namespace Sword25 {
-class BS_FMODExSound : public BS_SoundEngine {
+class FMODExSound : public SoundEngine {
public:
// -----------------------------------------------------------------------------
// Konstruktion / Destruktion
// -----------------------------------------------------------------------------
- BS_FMODExSound(BS_Kernel *pKernel);
- virtual ~BS_FMODExSound();
+ FMODExSound(BS_Kernel *pKernel);
+ virtual ~FMODExSound();
bool Init(unsigned int SampleRate, unsigned int Channels = 32);
void Update();
diff --git a/engines/sword25/sfx/soundengine.cpp b/engines/sword25/sfx/soundengine.cpp
index 039ca55cdd..34a6d70cea 100644
--- a/engines/sword25/sfx/soundengine.cpp
+++ b/engines/sword25/sfx/soundengine.cpp
@@ -38,7 +38,7 @@
namespace Sword25 {
-BS_SoundEngine::BS_SoundEngine(BS_Kernel *pKernel) : BS_ResourceService(pKernel) {
+SoundEngine::SoundEngine(BS_Kernel *pKernel) : BS_ResourceService(pKernel) {
if (!_RegisterScriptBindings())
BS_LOG_ERRORLN("Script bindings could not be registered.");
else
diff --git a/engines/sword25/sfx/soundengine.h b/engines/sword25/sfx/soundengine.h
index 86efe4d3bd..ac26acbff4 100644
--- a/engines/sword25/sfx/soundengine.h
+++ b/engines/sword25/sfx/soundengine.h
@@ -62,7 +62,7 @@ namespace Sword25 {
// Class definitions
// -----------------------------------------------------------------------------
-class BS_SoundEngine : public BS_ResourceService, public BS_Persistable {
+class SoundEngine : public BS_ResourceService, public BS_Persistable {
public:
// -----------------------------------------------------------------------------
// Enums and Types
@@ -86,8 +86,8 @@ public:
// Constructor / destructor
// -----------------------------------------------------------------------------
- BS_SoundEngine(BS_Kernel *pKernel);
- virtual ~BS_SoundEngine() {};
+ SoundEngine(BS_Kernel *pKernel);
+ virtual ~SoundEngine() {};
// --------------------------------------------------------------
// THIS METHOD MUST BE IMPLEMENTED BY THE SOUND ENGINE
diff --git a/engines/sword25/sfx/soundengine_script.cpp b/engines/sword25/sfx/soundengine_script.cpp
index 4df80b07cb..8e9c0f029f 100644
--- a/engines/sword25/sfx/soundengine_script.cpp
+++ b/engines/sword25/sfx/soundengine_script.cpp
@@ -49,7 +49,7 @@ namespace Sword25 {
static int Init(lua_State *L) {
BS_Kernel *pKernel = BS_Kernel::GetInstance();
BS_ASSERT(pKernel);
- BS_SoundEngine *pSfx = static_cast<BS_SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
if (lua_gettop(L) == 0)
@@ -67,7 +67,7 @@ static int Init(lua_State *L) {
static int Update(lua_State *L) {
BS_Kernel *pKernel = BS_Kernel::GetInstance();
BS_ASSERT(pKernel);
- BS_SoundEngine *pSfx = static_cast<BS_SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
pSfx->Update();
@@ -80,11 +80,11 @@ static int Update(lua_State *L) {
static int SetVolume(lua_State *L) {
BS_Kernel *pKernel = BS_Kernel::GetInstance();
BS_ASSERT(pKernel);
- BS_SoundEngine *pSfx = static_cast<BS_SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
pSfx->SetVolume(static_cast<float>(luaL_checknumber(L, 1)),
- static_cast<BS_SoundEngine::SOUND_TYPES>(static_cast<unsigned int>(luaL_checknumber(L, 2))));
+ static_cast<SoundEngine::SOUND_TYPES>(static_cast<unsigned int>(luaL_checknumber(L, 2))));
return 0;
}
@@ -94,10 +94,10 @@ static int SetVolume(lua_State *L) {
static int GetVolume(lua_State *L) {
BS_Kernel *pKernel = BS_Kernel::GetInstance();
BS_ASSERT(pKernel);
- BS_SoundEngine *pSfx = static_cast<BS_SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
- lua_pushnumber(L, pSfx->GetVolume(static_cast<BS_SoundEngine::SOUND_TYPES>(static_cast<unsigned int>(luaL_checknumber(L, 1)))));
+ lua_pushnumber(L, pSfx->GetVolume(static_cast<SoundEngine::SOUND_TYPES>(static_cast<unsigned int>(luaL_checknumber(L, 1)))));
return 1;
}
@@ -107,7 +107,7 @@ static int GetVolume(lua_State *L) {
static int PauseAll(lua_State *L) {
BS_Kernel *pKernel = BS_Kernel::GetInstance();
BS_ASSERT(pKernel);
- BS_SoundEngine *pSfx = static_cast<BS_SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
pSfx->PauseAll();
@@ -120,7 +120,7 @@ static int PauseAll(lua_State *L) {
static int ResumeAll(lua_State *L) {
BS_Kernel *pKernel = BS_Kernel::GetInstance();
BS_ASSERT(pKernel);
- BS_SoundEngine *pSfx = static_cast<BS_SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
pSfx->ResumeAll();
@@ -133,7 +133,7 @@ static int ResumeAll(lua_State *L) {
static int PauseLayer(lua_State *L) {
BS_Kernel *pKernel = BS_Kernel::GetInstance();
BS_ASSERT(pKernel);
- BS_SoundEngine *pSfx = static_cast<BS_SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
pSfx->PauseLayer(static_cast<int>(luaL_checknumber(L, 1)));
@@ -146,7 +146,7 @@ static int PauseLayer(lua_State *L) {
static int ResumeLayer(lua_State *L) {
BS_Kernel *pKernel = BS_Kernel::GetInstance();
BS_ASSERT(pKernel);
- BS_SoundEngine *pSfx = static_cast<BS_SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
pSfx->ResumeLayer(static_cast<int>(luaL_checknumber(L, 1)));
@@ -156,10 +156,10 @@ static int ResumeLayer(lua_State *L) {
// -----------------------------------------------------------------------------
-static void ProcessPlayParams(lua_State *L, Common::String &FileName, BS_SoundEngine::SOUND_TYPES &Type, float &Volume, float &Pan, bool &Loop, int &LoopStart, int &LoopEnd, unsigned int &Layer) {
+static void ProcessPlayParams(lua_State *L, Common::String &FileName, SoundEngine::SOUND_TYPES &Type, float &Volume, float &Pan, bool &Loop, int &LoopStart, int &LoopEnd, unsigned int &Layer) {
FileName = luaL_checkstring(L, 1);
- Type = static_cast<BS_SoundEngine::SOUND_TYPES>(static_cast<unsigned int>(luaL_checknumber(L, 2)));
+ Type = static_cast<SoundEngine::SOUND_TYPES>(static_cast<unsigned int>(luaL_checknumber(L, 2)));
if (lua_gettop(L) < 3 || lua_isnil(L, 3)) Volume = 1.0f;
else Volume = static_cast<float>(luaL_checknumber(L, 3));
@@ -183,11 +183,11 @@ static void ProcessPlayParams(lua_State *L, Common::String &FileName, BS_SoundEn
static int PlaySound(lua_State *L) {
BS_Kernel *pKernel = BS_Kernel::GetInstance();
BS_ASSERT(pKernel);
- BS_SoundEngine *pSfx = static_cast<BS_SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
Common::String FileName;
- BS_SoundEngine::SOUND_TYPES Type;
+ SoundEngine::SOUND_TYPES Type;
float Volume;
float Pan;
bool Loop;
@@ -204,11 +204,11 @@ static int PlaySound(lua_State *L) {
static int PlaySoundEx(lua_State *L) {
BS_Kernel *pKernel = BS_Kernel::GetInstance();
BS_ASSERT(pKernel);
- BS_SoundEngine *pSfx = static_cast<BS_SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
Common::String FileName;
- BS_SoundEngine::SOUND_TYPES Type;
+ SoundEngine::SOUND_TYPES Type;
float Volume;
float Pan;
bool Loop;
@@ -227,7 +227,7 @@ static int PlaySoundEx(lua_State *L) {
static int SetSoundVolume(lua_State *L) {
BS_Kernel *pKernel = BS_Kernel::GetInstance();
BS_ASSERT(pKernel);
- BS_SoundEngine *pSfx = static_cast<BS_SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
pSfx->SetSoundVolume(static_cast<unsigned int>(luaL_checknumber(L, 1)), static_cast<float>(luaL_checknumber(L, 2)));
@@ -240,7 +240,7 @@ static int SetSoundVolume(lua_State *L) {
static int SetSoundPanning(lua_State *L) {
BS_Kernel *pKernel = BS_Kernel::GetInstance();
BS_ASSERT(pKernel);
- BS_SoundEngine *pSfx = static_cast<BS_SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
pSfx->SetSoundPanning(static_cast<unsigned int>(luaL_checknumber(L, 1)), static_cast<float>(luaL_checknumber(L, 2)));
@@ -253,7 +253,7 @@ static int SetSoundPanning(lua_State *L) {
static int PauseSound(lua_State *L) {
BS_Kernel *pKernel = BS_Kernel::GetInstance();
BS_ASSERT(pKernel);
- BS_SoundEngine *pSfx = static_cast<BS_SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
pSfx->PauseSound(static_cast<unsigned int>(luaL_checknumber(L, 1)));
@@ -266,7 +266,7 @@ static int PauseSound(lua_State *L) {
static int ResumeSound(lua_State *L) {
BS_Kernel *pKernel = BS_Kernel::GetInstance();
BS_ASSERT(pKernel);
- BS_SoundEngine *pSfx = static_cast<BS_SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
pSfx->ResumeSound(static_cast<unsigned int>(luaL_checknumber(L, 1)));
@@ -279,7 +279,7 @@ static int ResumeSound(lua_State *L) {
static int StopSound(lua_State *L) {
BS_Kernel *pKernel = BS_Kernel::GetInstance();
BS_ASSERT(pKernel);
- BS_SoundEngine *pSfx = static_cast<BS_SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
pSfx->StopSound(static_cast<unsigned int>(luaL_checknumber(L, 1)));
@@ -292,7 +292,7 @@ static int StopSound(lua_State *L) {
static int IsSoundPaused(lua_State *L) {
BS_Kernel *pKernel = BS_Kernel::GetInstance();
BS_ASSERT(pKernel);
- BS_SoundEngine *pSfx = static_cast<BS_SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
lua_pushbooleancpp(L, pSfx->IsSoundPaused(static_cast<unsigned int>(luaL_checknumber(L, 1))));
@@ -305,7 +305,7 @@ static int IsSoundPaused(lua_State *L) {
static int IsSoundPlaying(lua_State *L) {
BS_Kernel *pKernel = BS_Kernel::GetInstance();
BS_ASSERT(pKernel);
- BS_SoundEngine *pSfx = static_cast<BS_SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
lua_pushbooleancpp(L, pSfx->IsSoundPlaying(static_cast<unsigned int>(luaL_checknumber(L, 1))));
@@ -318,7 +318,7 @@ static int IsSoundPlaying(lua_State *L) {
static int GetSoundVolume(lua_State *L) {
BS_Kernel *pKernel = BS_Kernel::GetInstance();
BS_ASSERT(pKernel);
- BS_SoundEngine *pSfx = static_cast<BS_SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
lua_pushnumber(L, pSfx->GetSoundVolume(static_cast<unsigned int>(luaL_checknumber(L, 1))));
@@ -331,7 +331,7 @@ static int GetSoundVolume(lua_State *L) {
static int GetSoundPanning(lua_State *L) {
BS_Kernel *pKernel = BS_Kernel::GetInstance();
BS_ASSERT(pKernel);
- BS_SoundEngine *pSfx = static_cast<BS_SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
lua_pushnumber(L, pSfx->GetSoundPanning(static_cast<unsigned int>(luaL_checknumber(L, 1))));
@@ -367,24 +367,24 @@ static const luaL_reg SFX_FUNCTIONS[] = {
};
static const lua_constant_reg SFX_CONSTANTS[] = {
- {"MUSIC", BS_SoundEngine::MUSIC},
- {"SPEECH", BS_SoundEngine::SPEECH},
- {"SFX", BS_SoundEngine::SFX},
+ {"MUSIC", SoundEngine::MUSIC},
+ {"SPEECH", SoundEngine::SPEECH},
+ {"SFX", SoundEngine::SFX},
{0, 0}
};
// -----------------------------------------------------------------------------
-bool BS_SoundEngine::_RegisterScriptBindings() {
+bool SoundEngine::_RegisterScriptBindings() {
BS_Kernel *pKernel = BS_Kernel::GetInstance();
BS_ASSERT(pKernel);
- BS_ScriptEngine *pScript = static_cast<BS_ScriptEngine *>(pKernel->GetService("script"));
+ ScriptEngine *pScript = static_cast<ScriptEngine *>(pKernel->GetService("script"));
BS_ASSERT(pScript);
lua_State *L = static_cast<lua_State *>(pScript->GetScriptObject());
BS_ASSERT(L);
- if (!BS_LuaBindhelper::AddFunctionsToLib(L, SFX_LIBRARY_NAME, SFX_FUNCTIONS)) return false;
- if (!BS_LuaBindhelper::AddConstantsToLib(L, SFX_LIBRARY_NAME, SFX_CONSTANTS)) return false;
+ if (!LuaBindhelper::AddFunctionsToLib(L, SFX_LIBRARY_NAME, SFX_FUNCTIONS)) return false;
+ if (!LuaBindhelper::AddConstantsToLib(L, SFX_LIBRARY_NAME, SFX_CONSTANTS)) return false;
return true;
}