From 8b81cdd2a602d63b6b7f595383cedecf54046650 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Sat, 7 Jul 2007 20:31:23 +0000 Subject: (svn r10471) -Codechange: implement driver probing priority so that 'preferred' drivers are loaded first --- src/sound/sdl_s.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/sound/sdl_s.h') diff --git a/src/sound/sdl_s.h b/src/sound/sdl_s.h index 97a9036eb..83edccc99 100644 --- a/src/sound/sdl_s.h +++ b/src/sound/sdl_s.h @@ -7,8 +7,6 @@ class SoundDriver_SDL: public SoundDriver { public: - /* virtual */ bool CanProbe() { return true; } - /* virtual */ const char *Start(const char * const *param); /* virtual */ void Stop(); @@ -16,6 +14,7 @@ public: class FSoundDriver_SDL: public SoundDriverFactory { public: + static const int priority = 5; /* virtual */ const char *GetName() { return "sdl"; } /* virtual */ const char *GetDescription() { return "SDL Sound Driver"; } /* virtual */ Driver *CreateInstance() { return new SoundDriver_SDL(); } -- cgit v1.2.3-54-g00ecf