|
From: <sag...@us...> - 2010-02-22 01:08:58
|
Revision: 507
http://modplug.svn.sourceforge.net/modplug/?rev=507&view=rev
Author: saga-games
Date: 2010-02-22 00:21:17 +0000 (Mon, 22 Feb 2010)
Log Message:
-----------
[Fix] XM Loader: Last change might have changed plugin volume handling for old XM files, so let's better put those lines back.
Modified Paths:
--------------
trunk/OpenMPT/soundlib/Load_xm.cpp
Modified: trunk/OpenMPT/soundlib/Load_xm.cpp
===================================================================
--- trunk/OpenMPT/soundlib/Load_xm.cpp 2010-02-21 14:18:55 UTC (rev 506)
+++ trunk/OpenMPT/soundlib/Load_xm.cpp 2010-02-22 00:21:17 UTC (rev 507)
@@ -319,6 +319,8 @@
if (dwMemPos + LittleEndian(pih->size) > dwMemLength) return true;
if ((Instruments[iIns] = new MODINSTRUMENT) == nullptr) continue;
memcpy(Instruments[iIns], &m_defaultInstrument, sizeof(MODINSTRUMENT));
+ Instruments[iIns]->nPluginVelocityHandling = PLUGIN_VELOCITYHANDLING_CHANNEL;
+ Instruments[iIns]->nPluginVolumeHandling = PLUGIN_VOLUMEHANDLING_IGNORE;
memcpy(Instruments[iIns]->name, pih->name, 22);
SpaceToNullStringFixed(Instruments[iIns]->name, 22);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|