summaryrefslogtreecommitdiffstats
path: root/src/sound/sound.cpp
diff options
context:
space:
mode:
authorKrzysztof Dermont <erihel@gmail.com>2014-06-21 02:58:41 +0200
committerKrzysztof Dermont <erihel@gmail.com>2014-06-21 02:59:26 +0200
commit1630cf0ed20ea8df879327af1275ff281a9bc7e0 (patch)
tree8ea090c6ce1e9ea5b5fc95198bdbf5489d8d686f /src/sound/sound.cpp
parent2260f6bf4feb62929e32a1bea9cd3f403aa034b1 (diff)
downloadcolobot-1630cf0ed20ea8df879327af1275ff281a9bc7e0.tar.gz
colobot-1630cf0ed20ea8df879327af1275ff281a9bc7e0.tar.bz2
colobot-1630cf0ed20ea8df879327af1275ff281a9bc7e0.zip
Implemented libsndfile loader in PhysFS
Diffstat (limited to 'src/sound/sound.cpp')
-rw-r--r--src/sound/sound.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sound/sound.cpp b/src/sound/sound.cpp
index 9cae1fd..9c9f483 100644
--- a/src/sound/sound.cpp
+++ b/src/sound/sound.cpp
@@ -46,7 +46,7 @@ void CSoundInterface::CacheAll()
for ( int i = 1; i < SOUND_MAX; i++ )
{
std::stringstream filename;
- filename << "sound" << std::setfill('0') << std::setw(3) << i << ".wav";
+ filename << "sounds/sound" << std::setfill('0') << std::setw(3) << i << ".wav";
if ( !Cache(static_cast<Sound>(i), filename.str()) )
GetLogger()->Warn("Unable to load audio: %s\n", filename.str().c_str());
}
@@ -54,10 +54,10 @@ void CSoundInterface::CacheAll()
void CSoundInterface::AddMusicFiles()
{
- CacheMusic("Intro1.ogg");
- CacheMusic("Intro2.ogg");
- CacheMusic("music010.ogg");
- CacheMusic("music011.ogg");
+ CacheMusic("music/Intro1.ogg");
+ CacheMusic("music/Intro2.ogg");
+ CacheMusic("music/music010.ogg");
+ CacheMusic("music/music011.ogg");
}
bool CSoundInterface::Cache(Sound bSound, const std::string &bFile)