aboutsummaryrefslogtreecommitdiff
path: root/audio/softsynth/opl/alsa.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'audio/softsynth/opl/alsa.cpp')
-rw-r--r--audio/softsynth/opl/alsa.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/audio/softsynth/opl/alsa.cpp b/audio/softsynth/opl/alsa.cpp
index 934fb34aab..bb15719e92 100644
--- a/audio/softsynth/opl/alsa.cpp
+++ b/audio/softsynth/opl/alsa.cpp
@@ -92,8 +92,10 @@ OPL::OPL(Config::OplType type) : _type(type), _opl(nullptr), _iface(0) {
OPL::~OPL() {
stop();
- if (_opl)
+ if (_opl) {
+ snd_hwdep_ioctl(_opl, SNDRV_DM_FM_IOCTL_RESET, nullptr);
snd_hwdep_close(_opl);
+ }
}
void OPL::clear() {