aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/sfx
diff options
context:
space:
mode:
authorEugene Sandulenko2010-08-18 12:58:22 +0000
committerEugene Sandulenko2010-10-12 22:59:01 +0000
commitb01994a53bbc96da907a4c28934e644184291017 (patch)
tree7454011b38391985e9f7ce6bca101f1394d127be /engines/sword25/sfx
parent4c4e821326a3772ad59fee836eabd5175bbb84ca (diff)
downloadscummvm-rg350-b01994a53bbc96da907a4c28934e644184291017.tar.gz
scummvm-rg350-b01994a53bbc96da907a4c28934e644184291017.tar.bz2
scummvm-rg350-b01994a53bbc96da907a4c28934e644184291017.zip
SWORD25: removed BS_ prefix from rest of the classes.
The things which are intentionally left with the prefix: BS_LOG, BS_ASSERT, BS_Rect, BS_String. svn-id: r53261
Diffstat (limited to 'engines/sword25/sfx')
-rw-r--r--engines/sword25/sfx/fmodexsound.cpp10
-rw-r--r--engines/sword25/sfx/fmodexsound.h8
-rw-r--r--engines/sword25/sfx/soundengine.cpp2
-rw-r--r--engines/sword25/sfx/soundengine.h4
-rw-r--r--engines/sword25/sfx/soundengine_script.cpp78
5 files changed, 51 insertions, 51 deletions
diff --git a/engines/sword25/sfx/fmodexsound.cpp b/engines/sword25/sfx/fmodexsound.cpp
index da0f0f932e..e71711577c 100644
--- a/engines/sword25/sfx/fmodexsound.cpp
+++ b/engines/sword25/sfx/fmodexsound.cpp
@@ -120,7 +120,7 @@ inline FMOD_SOUND_FORMAT BitsPerSampleToFMODExSoundFormat(unsigned int BitsPerSa
#endif
-FMODExSound::FMODExSound(BS_Kernel *pKernel) :
+FMODExSound::FMODExSound(Kernel *pKernel) :
SoundEngine(pKernel)
/* m_FMOD(0),
m_NextHandle(1) */ {
@@ -149,7 +149,7 @@ FMODExSound::~FMODExSound() {
// -----------------------------------------------------------------------------
-BS_Service *FMODExSound_CreateObject(BS_Kernel *pKernel) {
+Service *FMODExSound_CreateObject(Kernel *pKernel) {
return new FMODExSound(pKernel);
}
@@ -727,7 +727,7 @@ unsigned int BS_FMODExSound::CountPlayingDynamicSounds() {
// Ressourcen-Verwaltung
// -----------------------------------------------------------------------------
-BS_Resource *FMODExSound::LoadResource(const Common::String &FileName) {
+Resource *FMODExSound::LoadResource(const Common::String &FileName) {
#if 0
BS_ASSERT(m_FMOD);
BS_ASSERT(CanLoadResource(FileName));
@@ -764,7 +764,7 @@ bool FMODExSound::CanLoadResource(const Common::String &FileName) {
// Persistenz
// -----------------------------------------------------------------------------
-bool FMODExSound::Persist(BS_OutputPersistenceBlock &Writer) {
+bool FMODExSound::Persist(OutputPersistenceBlock &Writer) {
#if 0
BS_ASSERT(m_FMOD);
@@ -815,7 +815,7 @@ bool FMODExSound::Persist(BS_OutputPersistenceBlock &Writer) {
// -----------------------------------------------------------------------------
-bool FMODExSound::Unpersist(BS_InputPersistenceBlock &Reader) {
+bool FMODExSound::Unpersist(InputPersistenceBlock &Reader) {
#if 0
BS_ASSERT(m_FMOD);
diff --git a/engines/sword25/sfx/fmodexsound.h b/engines/sword25/sfx/fmodexsound.h
index 988d388a99..7a313d7025 100644
--- a/engines/sword25/sfx/fmodexsound.h
+++ b/engines/sword25/sfx/fmodexsound.h
@@ -45,7 +45,7 @@ public:
// Konstruktion / Destruktion
// -----------------------------------------------------------------------------
- FMODExSound(BS_Kernel *pKernel);
+ FMODExSound(Kernel *pKernel);
virtual ~FMODExSound();
bool Init(unsigned int SampleRate, unsigned int Channels = 32);
@@ -71,15 +71,15 @@ public:
float GetSoundPanning(unsigned int Handle);
float GetSoundTime(unsigned int Handle);
- BS_Resource *LoadResource(const Common::String &FileName);
+ Resource *LoadResource(const Common::String &FileName);
bool CanLoadResource(const Common::String &FileName);
// -----------------------------------------------------------------------------
// Persistenz
// -----------------------------------------------------------------------------
- bool Persist(BS_OutputPersistenceBlock &Writer);
- bool Unpersist(BS_InputPersistenceBlock &Reader);
+ bool Persist(OutputPersistenceBlock &Writer);
+ bool Unpersist(InputPersistenceBlock &Reader);
#if 0
private:
diff --git a/engines/sword25/sfx/soundengine.cpp b/engines/sword25/sfx/soundengine.cpp
index 34a6d70cea..022d58b4b4 100644
--- a/engines/sword25/sfx/soundengine.cpp
+++ b/engines/sword25/sfx/soundengine.cpp
@@ -38,7 +38,7 @@
namespace Sword25 {
-SoundEngine::SoundEngine(BS_Kernel *pKernel) : BS_ResourceService(pKernel) {
+SoundEngine::SoundEngine(Kernel *pKernel) : 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 ac26acbff4..da60f9d736 100644
--- a/engines/sword25/sfx/soundengine.h
+++ b/engines/sword25/sfx/soundengine.h
@@ -62,7 +62,7 @@ namespace Sword25 {
// Class definitions
// -----------------------------------------------------------------------------
-class SoundEngine : public BS_ResourceService, public BS_Persistable {
+class SoundEngine : public ResourceService, public Persistable {
public:
// -----------------------------------------------------------------------------
// Enums and Types
@@ -86,7 +86,7 @@ public:
// Constructor / destructor
// -----------------------------------------------------------------------------
- SoundEngine(BS_Kernel *pKernel);
+ SoundEngine(Kernel *pKernel);
virtual ~SoundEngine() {};
// --------------------------------------------------------------
diff --git a/engines/sword25/sfx/soundengine_script.cpp b/engines/sword25/sfx/soundengine_script.cpp
index 8e9c0f029f..4e8d6cd8c4 100644
--- a/engines/sword25/sfx/soundengine_script.cpp
+++ b/engines/sword25/sfx/soundengine_script.cpp
@@ -47,9 +47,9 @@ namespace Sword25 {
// -----------------------------------------------------------------------------
static int Init(lua_State *L) {
- BS_Kernel *pKernel = BS_Kernel::GetInstance();
+ Kernel *pKernel = Kernel::GetInstance();
BS_ASSERT(pKernel);
- SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
if (lua_gettop(L) == 0)
@@ -65,9 +65,9 @@ static int Init(lua_State *L) {
// -----------------------------------------------------------------------------
static int Update(lua_State *L) {
- BS_Kernel *pKernel = BS_Kernel::GetInstance();
+ Kernel *pKernel = Kernel::GetInstance();
BS_ASSERT(pKernel);
- SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
pSfx->Update();
@@ -78,9 +78,9 @@ static int Update(lua_State *L) {
// -----------------------------------------------------------------------------
static int SetVolume(lua_State *L) {
- BS_Kernel *pKernel = BS_Kernel::GetInstance();
+ Kernel *pKernel = Kernel::GetInstance();
BS_ASSERT(pKernel);
- SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
pSfx->SetVolume(static_cast<float>(luaL_checknumber(L, 1)),
@@ -92,9 +92,9 @@ static int SetVolume(lua_State *L) {
// -----------------------------------------------------------------------------
static int GetVolume(lua_State *L) {
- BS_Kernel *pKernel = BS_Kernel::GetInstance();
+ Kernel *pKernel = Kernel::GetInstance();
BS_ASSERT(pKernel);
- SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
lua_pushnumber(L, pSfx->GetVolume(static_cast<SoundEngine::SOUND_TYPES>(static_cast<unsigned int>(luaL_checknumber(L, 1)))));
@@ -105,9 +105,9 @@ static int GetVolume(lua_State *L) {
// -----------------------------------------------------------------------------
static int PauseAll(lua_State *L) {
- BS_Kernel *pKernel = BS_Kernel::GetInstance();
+ Kernel *pKernel = Kernel::GetInstance();
BS_ASSERT(pKernel);
- SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
pSfx->PauseAll();
@@ -118,9 +118,9 @@ static int PauseAll(lua_State *L) {
// -----------------------------------------------------------------------------
static int ResumeAll(lua_State *L) {
- BS_Kernel *pKernel = BS_Kernel::GetInstance();
+ Kernel *pKernel = Kernel::GetInstance();
BS_ASSERT(pKernel);
- SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
pSfx->ResumeAll();
@@ -131,9 +131,9 @@ static int ResumeAll(lua_State *L) {
// -----------------------------------------------------------------------------
static int PauseLayer(lua_State *L) {
- BS_Kernel *pKernel = BS_Kernel::GetInstance();
+ Kernel *pKernel = Kernel::GetInstance();
BS_ASSERT(pKernel);
- SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
pSfx->PauseLayer(static_cast<int>(luaL_checknumber(L, 1)));
@@ -144,9 +144,9 @@ static int PauseLayer(lua_State *L) {
// -----------------------------------------------------------------------------
static int ResumeLayer(lua_State *L) {
- BS_Kernel *pKernel = BS_Kernel::GetInstance();
+ Kernel *pKernel = Kernel::GetInstance();
BS_ASSERT(pKernel);
- SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
pSfx->ResumeLayer(static_cast<int>(luaL_checknumber(L, 1)));
@@ -181,9 +181,9 @@ static void ProcessPlayParams(lua_State *L, Common::String &FileName, SoundEngin
}
static int PlaySound(lua_State *L) {
- BS_Kernel *pKernel = BS_Kernel::GetInstance();
+ Kernel *pKernel = Kernel::GetInstance();
BS_ASSERT(pKernel);
- SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
Common::String FileName;
@@ -202,9 +202,9 @@ static int PlaySound(lua_State *L) {
}
static int PlaySoundEx(lua_State *L) {
- BS_Kernel *pKernel = BS_Kernel::GetInstance();
+ Kernel *pKernel = Kernel::GetInstance();
BS_ASSERT(pKernel);
- SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
Common::String FileName;
@@ -225,9 +225,9 @@ static int PlaySoundEx(lua_State *L) {
// -----------------------------------------------------------------------------
static int SetSoundVolume(lua_State *L) {
- BS_Kernel *pKernel = BS_Kernel::GetInstance();
+ Kernel *pKernel = Kernel::GetInstance();
BS_ASSERT(pKernel);
- SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
pSfx->SetSoundVolume(static_cast<unsigned int>(luaL_checknumber(L, 1)), static_cast<float>(luaL_checknumber(L, 2)));
@@ -238,9 +238,9 @@ static int SetSoundVolume(lua_State *L) {
// -----------------------------------------------------------------------------
static int SetSoundPanning(lua_State *L) {
- BS_Kernel *pKernel = BS_Kernel::GetInstance();
+ Kernel *pKernel = Kernel::GetInstance();
BS_ASSERT(pKernel);
- SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
pSfx->SetSoundPanning(static_cast<unsigned int>(luaL_checknumber(L, 1)), static_cast<float>(luaL_checknumber(L, 2)));
@@ -251,9 +251,9 @@ static int SetSoundPanning(lua_State *L) {
// -----------------------------------------------------------------------------
static int PauseSound(lua_State *L) {
- BS_Kernel *pKernel = BS_Kernel::GetInstance();
+ Kernel *pKernel = Kernel::GetInstance();
BS_ASSERT(pKernel);
- SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
pSfx->PauseSound(static_cast<unsigned int>(luaL_checknumber(L, 1)));
@@ -264,9 +264,9 @@ static int PauseSound(lua_State *L) {
// -----------------------------------------------------------------------------
static int ResumeSound(lua_State *L) {
- BS_Kernel *pKernel = BS_Kernel::GetInstance();
+ Kernel *pKernel = Kernel::GetInstance();
BS_ASSERT(pKernel);
- SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
pSfx->ResumeSound(static_cast<unsigned int>(luaL_checknumber(L, 1)));
@@ -277,9 +277,9 @@ static int ResumeSound(lua_State *L) {
// -----------------------------------------------------------------------------
static int StopSound(lua_State *L) {
- BS_Kernel *pKernel = BS_Kernel::GetInstance();
+ Kernel *pKernel = Kernel::GetInstance();
BS_ASSERT(pKernel);
- SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
pSfx->StopSound(static_cast<unsigned int>(luaL_checknumber(L, 1)));
@@ -290,9 +290,9 @@ static int StopSound(lua_State *L) {
// -----------------------------------------------------------------------------
static int IsSoundPaused(lua_State *L) {
- BS_Kernel *pKernel = BS_Kernel::GetInstance();
+ Kernel *pKernel = Kernel::GetInstance();
BS_ASSERT(pKernel);
- SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
lua_pushbooleancpp(L, pSfx->IsSoundPaused(static_cast<unsigned int>(luaL_checknumber(L, 1))));
@@ -303,9 +303,9 @@ static int IsSoundPaused(lua_State *L) {
// -----------------------------------------------------------------------------
static int IsSoundPlaying(lua_State *L) {
- BS_Kernel *pKernel = BS_Kernel::GetInstance();
+ Kernel *pKernel = Kernel::GetInstance();
BS_ASSERT(pKernel);
- SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
lua_pushbooleancpp(L, pSfx->IsSoundPlaying(static_cast<unsigned int>(luaL_checknumber(L, 1))));
@@ -316,9 +316,9 @@ static int IsSoundPlaying(lua_State *L) {
// -----------------------------------------------------------------------------
static int GetSoundVolume(lua_State *L) {
- BS_Kernel *pKernel = BS_Kernel::GetInstance();
+ Kernel *pKernel = Kernel::GetInstance();
BS_ASSERT(pKernel);
- SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
lua_pushnumber(L, pSfx->GetSoundVolume(static_cast<unsigned int>(luaL_checknumber(L, 1))));
@@ -329,9 +329,9 @@ static int GetSoundVolume(lua_State *L) {
// -----------------------------------------------------------------------------
static int GetSoundPanning(lua_State *L) {
- BS_Kernel *pKernel = BS_Kernel::GetInstance();
+ Kernel *pKernel = Kernel::GetInstance();
BS_ASSERT(pKernel);
- SoundEngine *pSfx = static_cast<SoundEngine *>(BS_Kernel::GetInstance()->GetService("sfx"));
+ SoundEngine *pSfx = static_cast<SoundEngine *>(Kernel::GetInstance()->GetService("sfx"));
BS_ASSERT(pSfx);
lua_pushnumber(L, pSfx->GetSoundPanning(static_cast<unsigned int>(luaL_checknumber(L, 1))));
@@ -376,7 +376,7 @@ static const lua_constant_reg SFX_CONSTANTS[] = {
// -----------------------------------------------------------------------------
bool SoundEngine::_RegisterScriptBindings() {
- BS_Kernel *pKernel = BS_Kernel::GetInstance();
+ Kernel *pKernel = Kernel::GetInstance();
BS_ASSERT(pKernel);
ScriptEngine *pScript = static_cast<ScriptEngine *>(pKernel->GetService("script"));
BS_ASSERT(pScript);