More codec loader troubles with extensions

This commit is contained in:
Thilo Schulz 2011-05-12 12:25:36 +00:00
parent 68338a8268
commit 59271903a2
3 changed files with 3 additions and 3 deletions

View file

@ -90,7 +90,7 @@ static void *S_CodecGetSound(const char *filename, snd_info_t *info)
if( codec == orgCodec ) if( codec == orgCodec )
continue; continue;
Com_sprintf( altName, sizeof (altName), "%s%s", localName, codec->ext ); Com_sprintf( altName, sizeof (altName), "%s.%s", localName, codec->ext );
// Load // Load
if( info ) if( info )

View file

@ -41,7 +41,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// Q3 OGG codec // Q3 OGG codec
snd_codec_t ogg_codec = snd_codec_t ogg_codec =
{ {
".ogg", "ogg",
S_OGG_CodecLoad, S_OGG_CodecLoad,
S_OGG_CodecOpenStream, S_OGG_CodecOpenStream,
S_OGG_CodecReadStream, S_OGG_CodecReadStream,

View file

@ -183,7 +183,7 @@ static qboolean S_ReadRIFFHeader(fileHandle_t file, snd_info_t *info)
// WAV codec // WAV codec
snd_codec_t wav_codec = snd_codec_t wav_codec =
{ {
".wav", "wav",
S_WAV_CodecLoad, S_WAV_CodecLoad,
S_WAV_CodecOpenStream, S_WAV_CodecOpenStream,
S_WAV_CodecReadStream, S_WAV_CodecReadStream,