|
From: <man...@us...> - 2013-04-22 23:18:34
|
Revision: 1956
http://sourceforge.net/p/modplug/code/1956
Author: manxorist
Date: 2013-04-22 23:18:28 +0000 (Mon, 22 Apr 2013)
Log Message:
-----------
[Fix] Add CSoundFile::ApplyFinalOutputGain(). This is not used in the tracker. (there were 2 changes missing in the last commit)
Modified Paths:
--------------
trunk/OpenMPT/soundlib/MixerSettings.cpp
trunk/OpenMPT/soundlib/MixerSettings.h
Modified: trunk/OpenMPT/soundlib/MixerSettings.cpp
===================================================================
--- trunk/OpenMPT/soundlib/MixerSettings.cpp 2013-04-22 23:15:37 UTC (rev 1955)
+++ trunk/OpenMPT/soundlib/MixerSettings.cpp 2013-04-22 23:18:28 UTC (rev 1956)
@@ -30,4 +30,9 @@
glVolumeRampUpSamples = 16;
glVolumeRampDownSamples = 42;
+
+#ifndef MODPLUG_TRACKER
+ m_FinalOutputGain = 1 << 16; // +/- 0dB
+#endif
+
}
Modified: trunk/OpenMPT/soundlib/MixerSettings.h
===================================================================
--- trunk/OpenMPT/soundlib/MixerSettings.h 2013-04-22 23:15:37 UTC (rev 1955)
+++ trunk/OpenMPT/soundlib/MixerSettings.h 2013-04-22 23:18:28 UTC (rev 1956)
@@ -36,6 +36,10 @@
long glVolumeRampUpSamples, glVolumeRampDownSamples;
//end rewbs.resamplerConf
+#ifndef MODPLUG_TRACKER
+ DWORD m_FinalOutputGain; // factor multiplied to the final mixer output just before clipping and dithering, fixed point 16.16
+#endif
+
bool IsUnsignedSampleFormat() const
{
return m_SampleFormat == SampleFormatUnsigned8;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|