summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThilo Schulz <arny@ats.s.bawue.de>2011-05-12 12:25:36 +0000
committerTim Angus <tim@ngus.net>2013-01-09 22:09:29 +0000
commitb4597c4d44c8b9f02a9129a7885b8a41c095d514 (patch)
tree01f24041d7539b95434b58d2f37608f242a72384
parentae264a8192d609e6e24c7e7a65214ac676b92300 (diff)
More codec loader troubles with extensions
-rw-r--r--src/client/snd_codec.c2
-rw-r--r--src/client/snd_codec_ogg.c2
-rw-r--r--src/client/snd_codec_wav.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/client/snd_codec.c b/src/client/snd_codec.c
index 61403148..6cec3375 100644
--- a/src/client/snd_codec.c
+++ b/src/client/snd_codec.c
@@ -91,7 +91,7 @@ static void *S_CodecGetSound(const char *filename, snd_info_t *info)
if( codec == orgCodec )
continue;
- Com_sprintf( altName, sizeof (altName), "%s%s", localName, codec->ext );
+ Com_sprintf( altName, sizeof (altName), "%s.%s", localName, codec->ext );
// Load
if( info )
diff --git a/src/client/snd_codec_ogg.c b/src/client/snd_codec_ogg.c
index 0ca2f689..70ff3009 100644
--- a/src/client/snd_codec_ogg.c
+++ b/src/client/snd_codec_ogg.c
@@ -42,7 +42,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// Q3 OGG codec
snd_codec_t ogg_codec =
{
- ".ogg",
+ "ogg",
S_OGG_CodecLoad,
S_OGG_CodecOpenStream,
S_OGG_CodecReadStream,
diff --git a/src/client/snd_codec_wav.c b/src/client/snd_codec_wav.c
index 1655a10e..adba7568 100644
--- a/src/client/snd_codec_wav.c
+++ b/src/client/snd_codec_wav.c
@@ -184,7 +184,7 @@ static qboolean S_ReadRIFFHeader(fileHandle_t file, snd_info_t *info)
// WAV codec
snd_codec_t wav_codec =
{
- ".wav",
+ "wav",
S_WAV_CodecLoad,
S_WAV_CodecOpenStream,
S_WAV_CodecReadStream,