[Scummvm-cvs-logs] SF.net SVN: scummvm:[39967] scummvm/branches/branch-0-13-0/sound/fmopl.cpp
agent-q at users.sourceforge.net
agent-q at users.sourceforge.net
Thu Apr 16 23:46:49 CEST 2009
Revision: 39967
http://scummvm.svn.sourceforge.net/scummvm/?rev=39967&view=rev
Author: agent-q
Date: 2009-04-16 21:46:49 +0000 (Thu, 16 Apr 2009)
Log Message:
-----------
DS: Make fmopl free it's RAM correctly on the DS
Modified Paths:
--------------
scummvm/branches/branch-0-13-0/sound/fmopl.cpp
Modified: scummvm/branches/branch-0-13-0/sound/fmopl.cpp
===================================================================
--- scummvm/branches/branch-0-13-0/sound/fmopl.cpp 2009-04-16 12:52:53 UTC (rev 39966)
+++ scummvm/branches/branch-0-13-0/sound/fmopl.cpp 2009-04-16 21:46:49 UTC (rev 39967)
@@ -715,8 +715,10 @@
}
static void OPLCloseTable(void) {
+#ifndef __DS__
free(TL_TABLE);
free(SIN_TABLE);
+#endif
free(AMS_TABLE);
free(VIB_TABLE);
free(ENV_CURVE);
@@ -1098,7 +1100,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