search for MP3s as well

This commit is contained in:
Cary Sandvig 2000-11-09 01:50:47 +00:00
parent c94534b769
commit bc362bc346

View File

@ -7,6 +7,7 @@
#include "audio_pool.h"
#include "config_audio.h"
#include "audio_trait.h"
#include "config_util.h"
Configure(audio_load_mp3);
@ -445,6 +446,7 @@ AudioTraits::SoundClass* AudioLoadMp3(Filename) {
EXPCL_MISC AudioTraits::SoundClass* AudioLoadMp3(Filename filename) {
unsigned char* buf;
unsigned long len;
filename.resolve_filename(get_sound_path());
read_file(filename, &buf, len);
if (buf != (unsigned char*)0L) {
return WinSample::load_raw(buf, len);
@ -459,6 +461,7 @@ EXPCL_MISC AudioTraits::SoundClass* AudioLoadMp3(Filename filename) {
AudioTraits::SoundClass* AudioLoadMp3(Filename filename) {
unsigned char* buf;
unsigned long len;
filename.resolve_filename(get_sound_path());
read_file(filename, &buf, len);
if (buf != (unsigned char*)0L) {
return LinuxSample::load_raw(buf, len);