aboutsummaryrefslogtreecommitdiff
path: root/sound/fmopl.cpp
diff options
context:
space:
mode:
authorMax Horn2005-01-10 22:46:23 +0000
committerMax Horn2005-01-10 22:46:23 +0000
commitf030081647882ae537ffe6493f0b7764ce655245 (patch)
treef61d024c4a911c3b01d1b18a81eff13ce3095cce /sound/fmopl.cpp
parentf3f1d6be874ef032284980bd5739bd57bda48237 (diff)
downloadscummvm-rg350-f030081647882ae537ffe6493f0b7764ce655245.tar.gz
scummvm-rg350-f030081647882ae537ffe6493f0b7764ce655245.tar.bz2
scummvm-rg350-f030081647882ae537ffe6493f0b7764ce655245.zip
eek, we put a static RandomSource instance into every file that included fmopl.h...
svn-id: r16532
Diffstat (limited to 'sound/fmopl.cpp')
-rw-r--r--sound/fmopl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/fmopl.cpp b/sound/fmopl.cpp
index 5b133a21f2..b6686a8962 100644
--- a/sound/fmopl.cpp
+++ b/sound/fmopl.cpp
@@ -38,6 +38,10 @@
#include "common/config-manager.h"
#endif
+
+static Common::RandomSource oplRnd; /* OPL random number generator */
+
+
/* -------------------- preliminary define section --------------------- */
/* attack/decay rate time rate */
#define OPL_ARRATE 141280 /* RATE 4 = 2826.24ms @ 3.6MHz */