Skip to content

Commit

Permalink
More codec loader troubles with extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Thilo Schulz committed May 12, 2011
1 parent 68338a8 commit 5927190
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion code/client/snd_codec.c
Expand Up @@ -90,7 +90,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 )
Expand Down
2 changes: 1 addition & 1 deletion code/client/snd_codec_ogg.c
Expand Up @@ -41,7 +41,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,
Expand Down
2 changes: 1 addition & 1 deletion code/client/snd_codec_wav.c
Expand Up @@ -183,7 +183,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,
Expand Down

0 comments on commit 5927190

Please sign in to comment.