diff options
Diffstat (limited to 'sound/mixer.h')
-rw-r--r-- | sound/mixer.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/sound/mixer.h b/sound/mixer.h index d1bd379408..9001245e0e 100644 --- a/sound/mixer.h +++ b/sound/mixer.h @@ -82,17 +82,22 @@ private: int _musicVolume; bool _paused; - + Channel *_channels[NUM_CHANNELS]; + bool _mixerReady; + public: SoundMixer(); ~SoundMixer(); - /** bind to the OSystem object => mixer will be - * invoked automatically when samples need - * to be generated */ - bool bindToSystem(OSystem *syst); + /** + * Is the mixer ready and setup? This may not be the case on systems which + * don't support digital sound output. In that case, the mixer proc may + * never be called. That in turn can cause breakage in games which use the + * premix callback for syncing. In particular, the Adlib MIDI emulation... + */ + bool isReady() const { return _mixerReady; }; /** * Set the premix procedure. This is mainly used for the adlib music, but |