diff options
author | Walter van Niftrik | 2015-03-25 12:18:14 +0100 |
---|---|---|
committer | Matthew Hoops | 2015-07-07 20:19:48 -0400 |
commit | 1bdcf6e83647a9509598d49bae6ddec1fbd25715 (patch) | |
tree | 3ef9477c926ba492115ffa887fca89f0248149a7 /audio | |
parent | be345083a03a110d9f6ebc9310152bf079dfab7e (diff) | |
download | scummvm-rg350-1bdcf6e83647a9509598d49bae6ddec1fbd25715.tar.gz scummvm-rg350-1bdcf6e83647a9509598d49bae6ddec1fbd25715.tar.bz2 scummvm-rg350-1bdcf6e83647a9509598d49bae6ddec1fbd25715.zip |
AUDIO: Reset ALSA AdLib on exit
Diffstat (limited to 'audio')
-rw-r--r-- | audio/softsynth/opl/alsa.cpp | 4 |
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() { |