From d0d4cd7b8a558e56219aacf56ff334ee73626c63 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 17 Oct 2009 15:15:00 +0000 Subject: (svn r17788) -Fix [FS#3268] (r16702): don't fail hard when no soundcard could be detected; just fall back on the null-driver --- src/sound/allegro_s.h | 2 +- src/sound/null_s.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sound') diff --git a/src/sound/allegro_s.h b/src/sound/allegro_s.h index 5eeeae248..cca292b16 100644 --- a/src/sound/allegro_s.h +++ b/src/sound/allegro_s.h @@ -26,7 +26,7 @@ public: class FSoundDriver_Allegro: public SoundDriverFactory { public: - static const int priority = 5; + static const int priority = 4; /* virtual */ const char *GetName() { return "allegro"; } /* virtual */ const char *GetDescription() { return "Allegro Sound Driver"; } /* virtual */ Driver *CreateInstance() { return new SoundDriver_Allegro(); } diff --git a/src/sound/null_s.h b/src/sound/null_s.h index 050f39fc9..34f12e70e 100644 --- a/src/sound/null_s.h +++ b/src/sound/null_s.h @@ -24,7 +24,7 @@ public: class FSoundDriver_Null: public SoundDriverFactory { public: - static const int priority = 0; + static const int priority = 1; /* virtual */ const char *GetName() { return "null"; } /* virtual */ const char *GetDescription() { return "Null Sound Driver"; } /* virtual */ Driver *CreateInstance() { return new SoundDriver_Null(); } -- cgit v1.2.3-54-g00ecf