summaryrefslogtreecommitdiffstats
path: root/src/sound/sound.cpp
diff options
context:
space:
mode:
authorerihel <erihel@gmail.com>2013-12-19 22:41:16 +0100
committererihel <erihel@gmail.com>2013-12-19 22:46:29 +0100
commitfe3f9ea38cfae89fdd83d4c3fe79ea355f50bce9 (patch)
treeec9e29f8a9ae321c9e5aaa8532e4c87f2dec4d0f /src/sound/sound.cpp
parent114cbec8a9859f19d4234659bd4951f540825dd3 (diff)
downloadcolobot-fe3f9ea38cfae89fdd83d4c3fe79ea355f50bce9.tar.gz
colobot-fe3f9ea38cfae89fdd83d4c3fe79ea355f50bce9.tar.bz2
colobot-fe3f9ea38cfae89fdd83d4c3fe79ea355f50bce9.zip
Sound support changes
* removed 2d sound * fixed listener orientation (propably issue #235) * removed unused code and minor refactoring
Diffstat (limited to 'src/sound/sound.cpp')
-rw-r--r--src/sound/sound.cpp32
1 files changed, 9 insertions, 23 deletions
diff --git a/src/sound/sound.cpp b/src/sound/sound.cpp
index d392612..d197b81 100644
--- a/src/sound/sound.cpp
+++ b/src/sound/sound.cpp
@@ -36,12 +36,12 @@ CSoundInterface::~CSoundInterface()
{
}
-bool CSoundInterface::Create(bool b3D)
+bool CSoundInterface::Create()
{
return true;
}
-void CSoundInterface::CacheAll(std::string path)
+void CSoundInterface::CacheAll(const std::string &path)
{
for ( int i = 1; i < SOUND_MAX; i++ )
{
@@ -52,7 +52,7 @@ void CSoundInterface::CacheAll(std::string path)
}
}
-void CSoundInterface::AddMusicFiles(std::string path)
+void CSoundInterface::AddMusicFiles(const std::string &path)
{
m_soundPath = path;
CacheMusic("Intro1.ogg");
@@ -61,12 +61,12 @@ void CSoundInterface::AddMusicFiles(std::string path)
CacheMusic("music011.ogg");
}
-bool CSoundInterface::Cache(Sound bSound, std::string bFile)
+bool CSoundInterface::Cache(Sound bSound, const std::string &bFile)
{
return true;
}
-bool CSoundInterface::CacheMusic(std::string bFile)
+bool CSoundInterface::CacheMusic(const std::string &bFile)
{
return true;
}
@@ -76,20 +76,6 @@ bool CSoundInterface::GetEnable()
return true;
}
-void CSoundInterface::SetSound3D(bool bMode)
-{
-}
-
-bool CSoundInterface::GetSound3D()
-{
- return true;
-}
-
-bool CSoundInterface::GetSound3DCap()
-{
- return true;
-}
-
void CSoundInterface::SetAudioVolume(int volume)
{
}
@@ -108,7 +94,7 @@ int CSoundInterface::GetMusicVolume()
return 0;
}
-void CSoundInterface::SetListener(Math::Vector eye, Math::Vector lookat)
+void CSoundInterface::SetListener(const Math::Vector &eye, const Math::Vector &lookat)
{
}
@@ -121,7 +107,7 @@ int CSoundInterface::Play(Sound sound, float amplitude, float frequency, bool bL
return 0;
}
-int CSoundInterface::Play(Sound sound, Math::Vector pos, float amplitude, float frequency, bool bLoop)
+int CSoundInterface::Play(Sound sound, const Math::Vector &pos, float amplitude, float frequency, bool bLoop)
{
return 0;
}
@@ -136,7 +122,7 @@ bool CSoundInterface::AddEnvelope(int channel, float amplitude, float frequency,
return true;
}
-bool CSoundInterface::Position(int channel, Math::Vector pos)
+bool CSoundInterface::Position(int channel, const Math::Vector &pos)
{
return true;
}
@@ -166,7 +152,7 @@ bool CSoundInterface::PlayMusic(int rank, bool bRepeat)
return true;
}
-bool CSoundInterface::PlayMusic(std::string filename, bool bRepeat)
+bool CSoundInterface::PlayMusic(const std::string &filename, bool bRepeat)
{
return true;
}