diff options
author | Max Horn | 2003-07-06 17:00:09 +0000 |
---|---|---|
committer | Max Horn | 2003-07-06 17:00:09 +0000 |
commit | 7e4fa4a1da468343fc5d5b9e2b62257611920cb2 (patch) | |
tree | db7c9f10aacb76a6dc42fdabd30ba523929ffb26 /sound/mixer.h | |
parent | b6c3d440b57aa792c5464babe0bb7ad4eb9b5f2c (diff) | |
download | scummvm-rg350-7e4fa4a1da468343fc5d5b9e2b62257611920cb2.tar.gz scummvm-rg350-7e4fa4a1da468343fc5d5b9e2b62257611920cb2.tar.bz2 scummvm-rg350-7e4fa4a1da468343fc5d5b9e2b62257611920cb2.zip |
mix() is really a private method, only to be called by the audio thread; cover setupPremix by the mutex, too (that helps preventing race conditions upon exit)
svn-id: r8809
Diffstat (limited to 'sound/mixer.h')
-rw-r--r-- | sound/mixer.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/mixer.h b/sound/mixer.h index 5cea147749..e5e9149132 100644 --- a/sound/mixer.h +++ b/sound/mixer.h @@ -51,8 +51,6 @@ public: }; private: - static void onGenerateSamples(void *s, byte *samples, int len); - OSystem *_syst; OSystem::MutexRef _mutex; @@ -95,9 +93,6 @@ public: /** Premix procedure, useful when using fmopl adlib */ void setupPremix(void * param, PremixProc * proc); - /** mix */ - void mix(int16 * buf, uint len); - /** stop all currently playing sounds */ void stopAll(); @@ -138,6 +133,11 @@ public: private: int insertChannel(PlayingSoundHandle *handle, Channel *chan); + + /** mix */ + void mix(int16 * buf, uint len); + + static void onGenerateSamples(void *s, byte *samples, int len); }; #endif |