[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Traverso-commit] traverso/src/audiofileio/encode WPAudioWriter.cpp
From: |
Remon Sijrier |
Subject: |
[Traverso-commit] traverso/src/audiofileio/encode WPAudioWriter.cpp |
Date: |
Tue, 14 Aug 2007 16:29:50 +0000 |
CVSROOT: /sources/traverso
Module name: traverso
Changes by: Remon Sijrier <r_sijrier> 07/08/14 16:29:50
Modified files:
src/audiofileio/encode: WPAudioWriter.cpp
Log message:
some config flags plus documentation added
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/audiofileio/encode/WPAudioWriter.cpp?cvsroot=traverso&r1=1.4&r2=1.5
Patches:
Index: WPAudioWriter.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/audiofileio/encode/WPAudioWriter.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- WPAudioWriter.cpp 13 Aug 2007 12:05:06 -0000 1.4
+++ WPAudioWriter.cpp 14 Aug 2007 16:29:50 -0000 1.5
@@ -75,6 +75,18 @@
m_config.channel_mask = (m_channels == 2) ? 3 : 4; // Microsoft
standard (mono = 4, stereo = 3)
m_config.num_channels = m_channels;
m_config.sample_rate = m_rate;
+
+ // Make optional ?
+
+ // CONFIG_HIGH_FLAG (default) ~ 1.5 times slower then FAST, ~ 20% extra
compression then FAST
+ // CONFIG_VERY_HIGH_FLAG ~ 2 times slower then FAST, ~ 25 % extra
compression then FAST
+ m_config.flags |= CONFIG_FAST_FLAG;
+ // This option reduces the storage of some floating-point data files by
up to about 10% by eliminating some
+ // information that has virtually no effect on the audio data. While
this does technically make the compression
+ // lossy, it retains all the advantages of floating point data (>600 dB
of dynamic range, no clipping, and 25 bits
+ // of resolution). This also affects large integer compression by
limiting the resolution to 24 bits.
+// m_config.flags |= CONFIG_SKIP_WVX;
+
WavpackSetConfiguration(m_wp, &m_config, -1);
if (!WavpackPackInit(m_wp)) {