summaryrefslogtreecommitdiffstats
path: root/src/sound
diff options
context:
space:
mode:
authorKrzysztof Dermont <erihel@gmail.com>2014-06-22 15:01:06 +0200
committerKrzysztof Dermont <erihel@gmail.com>2014-06-22 15:01:06 +0200
commit754154341dba420e5bfc3190c81deb2859d751ba (patch)
tree2fae97b49724edfc2e889f4ca9720af74737db26 /src/sound
parent1630cf0ed20ea8df879327af1275ff281a9bc7e0 (diff)
downloadcolobot-754154341dba420e5bfc3190c81deb2859d751ba.tar.gz
colobot-754154341dba420e5bfc3190c81deb2859d751ba.tar.bz2
colobot-754154341dba420e5bfc3190c81deb2859d751ba.zip
More work on PhysFS support
* added output stream * fixed music loading
Diffstat (limited to 'src/sound')
-rw-r--r--src/sound/oalsound/alsound.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sound/oalsound/alsound.cpp b/src/sound/oalsound/alsound.cpp
index 4d40c3b..e9bc116 100644
--- a/src/sound/oalsound/alsound.cpp
+++ b/src/sound/oalsound/alsound.cpp
@@ -609,7 +609,7 @@ void ALSound::SetListener(const Math::Vector &eye, const Math::Vector &lookat)
bool ALSound::PlayMusic(int rank, bool bRepeat, float fadeTime)
{
std::stringstream filename;
- filename << "music" << std::setfill('0') << std::setw(3) << rank << ".ogg";
+ filename << "music/music" << std::setfill('0') << std::setw(3) << rank << ".ogg";
return PlayMusic(filename.str(), bRepeat, fadeTime);
}