1
0
Fork 0

(svn r17788) -Fix [FS#3268] (r16702): don't fail hard when no soundcard could be detected; just fall back on the null-driver

release/1.0
rubidium 2009-10-17 15:15:00 +00:00
parent c37029d5e1
commit d0d4cd7b8a
3 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ public:
class FMusicDriver_Null: public MusicDriverFactory<FMusicDriver_Null> { class FMusicDriver_Null: public MusicDriverFactory<FMusicDriver_Null> {
public: public:
static const int priority = 0; static const int priority = 1;
/* virtual */ const char *GetName() { return "null"; } /* virtual */ const char *GetName() { return "null"; }
/* virtual */ const char *GetDescription() { return "Null Music Driver"; } /* virtual */ const char *GetDescription() { return "Null Music Driver"; }
/* virtual */ Driver *CreateInstance() { return new MusicDriver_Null(); } /* virtual */ Driver *CreateInstance() { return new MusicDriver_Null(); }

View File

@ -26,7 +26,7 @@ public:
class FSoundDriver_Allegro: public SoundDriverFactory<FSoundDriver_Allegro> { class FSoundDriver_Allegro: public SoundDriverFactory<FSoundDriver_Allegro> {
public: public:
static const int priority = 5; static const int priority = 4;
/* virtual */ const char *GetName() { return "allegro"; } /* virtual */ const char *GetName() { return "allegro"; }
/* virtual */ const char *GetDescription() { return "Allegro Sound Driver"; } /* virtual */ const char *GetDescription() { return "Allegro Sound Driver"; }
/* virtual */ Driver *CreateInstance() { return new SoundDriver_Allegro(); } /* virtual */ Driver *CreateInstance() { return new SoundDriver_Allegro(); }

View File

@ -24,7 +24,7 @@ public:
class FSoundDriver_Null: public SoundDriverFactory<FSoundDriver_Null> { class FSoundDriver_Null: public SoundDriverFactory<FSoundDriver_Null> {
public: public:
static const int priority = 0; static const int priority = 1;
/* virtual */ const char *GetName() { return "null"; } /* virtual */ const char *GetName() { return "null"; }
/* virtual */ const char *GetDescription() { return "Null Sound Driver"; } /* virtual */ const char *GetDescription() { return "Null Sound Driver"; }
/* virtual */ Driver *CreateInstance() { return new SoundDriver_Null(); } /* virtual */ Driver *CreateInstance() { return new SoundDriver_Null(); }