summaryrefslogtreecommitdiff
path: root/src/sound/allegro_s.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-11-25 23:21:58 +0000
committerrubidium <rubidium@openttd.org>2008-11-25 23:21:58 +0000
commitba2345808b84a22fe444849b47ce648c3c32bce0 (patch)
treef34a31a52f51017351a1e60fbcc336f87ded98c1 /src/sound/allegro_s.cpp
parent5ebb48fa8633dc90e7fd6343f117d513f682dc1e (diff)
downloadopenttd-ba2345808b84a22fe444849b47ce648c3c32bce0.tar.xz
(svn r14632) -Add: support Allegro as midi backend.
Diffstat (limited to 'src/sound/allegro_s.cpp')
-rw-r--r--src/sound/allegro_s.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sound/allegro_s.cpp b/src/sound/allegro_s.cpp
index f3d9579a9..3ce16b5c0 100644
--- a/src/sound/allegro_s.cpp
+++ b/src/sound/allegro_s.cpp
@@ -40,12 +40,12 @@ void SoundDriver_Allegro::MainLoop()
/** There are multiple modules that might be using Allegro and
* Allegro can only be initiated once. */
-extern int _allegro_count;
+extern int _allegro_instance_count;
const char *SoundDriver_Allegro::Start(const char * const *parm)
{
- if (_allegro_count == 0 && install_allegro(SYSTEM_AUTODETECT, &errno, NULL)) return NULL;
- _allegro_count++;
+ if (_allegro_instance_count == 0 && install_allegro(SYSTEM_AUTODETECT, &errno, NULL)) return NULL;
+ _allegro_instance_count++;
/* Initialise the sound */
if (install_sound(DIGI_AUTODETECT, MIDI_AUTODETECT, NULL) != 0) return NULL;
@@ -68,7 +68,7 @@ void SoundDriver_Allegro::Stop()
}
remove_sound();
- if (--_allegro_count == 0) allegro_exit();
+ if (--_allegro_instance_count == 0) allegro_exit();
}
#endif /* WITH_ALLEGRO */