summaryrefslogtreecommitdiff
path: root/src/sound
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-09-05 21:26:51 +0000
committerrubidium <rubidium@openttd.org>2009-09-05 21:26:51 +0000
commitbc5241600a33f7271a839105c4752ad24f202c1c (patch)
tree57ec42b3a8b93498e79f3fdc26ca3e10febdaee7 /src/sound
parent0be5e5935560de419283540ea6280acdff3dea9c (diff)
downloadopenttd-bc5241600a33f7271a839105c4752ad24f202c1c.tar.xz
(svn r17428) -Codechange: add a function to get the name of a driver
Diffstat (limited to 'src/sound')
-rw-r--r--src/sound/allegro_s.h1
-rw-r--r--src/sound/cocoa_s.h1
-rw-r--r--src/sound/null_s.h1
-rw-r--r--src/sound/sdl_s.h1
-rw-r--r--src/sound/win32_s.h1
5 files changed, 5 insertions, 0 deletions
diff --git a/src/sound/allegro_s.h b/src/sound/allegro_s.h
index b59b8527f..5eeeae248 100644
--- a/src/sound/allegro_s.h
+++ b/src/sound/allegro_s.h
@@ -21,6 +21,7 @@ public:
/* virtual */ void Stop();
/* virtual */ void MainLoop();
+ /* virtual */ const char *GetName() const { return "allegro"; }
};
class FSoundDriver_Allegro: public SoundDriverFactory<FSoundDriver_Allegro> {
diff --git a/src/sound/cocoa_s.h b/src/sound/cocoa_s.h
index dd893cc3e..7492164c5 100644
--- a/src/sound/cocoa_s.h
+++ b/src/sound/cocoa_s.h
@@ -19,6 +19,7 @@ public:
/* virtual */ const char *Start(const char * const *param);
/* virtual */ void Stop();
+ /* virtual */ const char *GetName() const { return "cocoa"; }
};
class FSoundDriver_Cocoa: public SoundDriverFactory<FSoundDriver_Cocoa> {
diff --git a/src/sound/null_s.h b/src/sound/null_s.h
index 26239ae18..050f39fc9 100644
--- a/src/sound/null_s.h
+++ b/src/sound/null_s.h
@@ -19,6 +19,7 @@ public:
/* virtual */ const char *Start(const char * const *param) { return NULL; }
/* virtual */ void Stop() { }
+ /* virtual */ const char *GetName() const { return "null"; }
};
class FSoundDriver_Null: public SoundDriverFactory<FSoundDriver_Null> {
diff --git a/src/sound/sdl_s.h b/src/sound/sdl_s.h
index e664c4eb5..d8a4d587d 100644
--- a/src/sound/sdl_s.h
+++ b/src/sound/sdl_s.h
@@ -19,6 +19,7 @@ public:
/* virtual */ const char *Start(const char * const *param);
/* virtual */ void Stop();
+ /* virtual */ const char *GetName() const { return "sdl"; }
};
class FSoundDriver_SDL: public SoundDriverFactory<FSoundDriver_SDL> {
diff --git a/src/sound/win32_s.h b/src/sound/win32_s.h
index 0659ead34..c75d07594 100644
--- a/src/sound/win32_s.h
+++ b/src/sound/win32_s.h
@@ -19,6 +19,7 @@ public:
/* virtual */ const char *Start(const char * const *param);
/* virtual */ void Stop();
+ /* virtual */ const char *GetName() const { return "win32"; }
};
class FSoundDriver_Win32: public SoundDriverFactory<FSoundDriver_Win32> {