aboutsummaryrefslogtreecommitdiff
path: root/audio/fmopl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'audio/fmopl.cpp')
-rw-r--r--audio/fmopl.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/audio/fmopl.cpp b/audio/fmopl.cpp
index 07c5b44427..638da6c224 100644
--- a/audio/fmopl.cpp
+++ b/audio/fmopl.cpp
@@ -201,8 +201,10 @@ EmulatedOPL::EmulatedOPL() :
EmulatedOPL::~EmulatedOPL() {
// Stop callbacks, just in case. If it's still playing at this
- // point, there's probably a bigger issue, though.
- stopCallbacks();
+ // point, there's probably a bigger issue, though. The subclass
+ // needs to call stop() or the pointer can still use be used in
+ // the mixer thread at the same time.
+ stop();
}
int EmulatedOPL::readBuffer(int16 *buffer, const int numSamples) {