[Scummvm-cvs-logs] SF.net SVN: scummvm:[43106] scummvm/branches/branch-1-0-0/sound/softsynth/ opl/mame.cpp
agent-q at users.sourceforge.net
agent-q at users.sourceforge.net
Sat Aug 8 02:47:39 CEST 2009
Revision: 43106
http://scummvm.svn.sourceforge.net/scummvm/?rev=43106&view=rev
Author: agent-q
Date: 2009-08-08 00:47:38 +0000 (Sat, 08 Aug 2009)
Log Message:
-----------
DS: Make the OPL synth close properly
Modified Paths:
--------------
scummvm/branches/branch-1-0-0/sound/softsynth/opl/mame.cpp
Modified: scummvm/branches/branch-1-0-0/sound/softsynth/opl/mame.cpp
===================================================================
--- scummvm/branches/branch-1-0-0/sound/softsynth/opl/mame.cpp 2009-08-07 21:26:56 UTC (rev 43105)
+++ scummvm/branches/branch-1-0-0/sound/softsynth/opl/mame.cpp 2009-08-08 00:47:38 UTC (rev 43106)
@@ -754,8 +754,10 @@
}
static void OPLCloseTable(void) {
+#ifndef __DS__
free(TL_TABLE);
free(SIN_TABLE);
+#endif
free(AMS_TABLE);
free(VIB_TABLE);
free(ENV_CURVE);
@@ -1137,7 +1139,11 @@
/* ---------- Destroy one of vietual YM3812 ---------- */
void OPLDestroy(FM_OPL *OPL) {
OPL_UnLockTable();
+#ifdef __DS__
+ DS::fastRamReset();
+#else
free(OPL);
+#endif
}
/* ---------- Option handlers ---------- */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list