[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Traverso-commit] traverso/src/core AudioClip.cpp
From: |
Ben Levitt |
Subject: |
[Traverso-commit] traverso/src/core AudioClip.cpp |
Date: |
Thu, 16 Aug 2007 00:16:57 +0000 |
CVSROOT: /sources/traverso
Module name: traverso
Changes by: Ben Levitt <benjie> 07/08/16 00:16:57
Modified files:
src/core : AudioClip.cpp
Log message:
Make recording format settable in the configuration file
Recording/FileFormat can be wav or wavpack
Recording/WavpackFast can be true or false
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/core/AudioClip.cpp?cvsroot=traverso&r1=1.122&r2=1.123
Patches:
Index: AudioClip.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/core/AudioClip.cpp,v
retrieving revision 1.122
retrieving revision 1.123
diff -u -b -r1.122 -r1.123
--- AudioClip.cpp 15 Aug 2007 20:15:48 -0000 1.122
+++ AudioClip.cpp 16 Aug 2007 00:16:56 -0000 1.123
@@ -544,9 +544,21 @@
ExportSpecification* spec = new ExportSpecification;
spec->exportdir = pm().get_project()->get_root_dir() + "/audiosources/";
+
+ QString recordFormat = config().get_property("Recording", "FileFormat",
"wav").toString();
+ if (recordFormat == "wavpack") {
spec->writerType = "wavpack";
+ bool useFast = config().get_property("Recording",
"WavpackFast", false).toBool();
+ if (useFast) {
spec->extraFormat["quality"] = "fast";
-// spec->extraFormat["skip_wvx"] = "true";
+ }
+ // spec->extraFormat["skip_wvx"] = "true";
+ }
+ else {
+ spec->writerType = "sndfile";
+ spec->extraFormat["filetype"] = "wav";
+ }
+
spec->data_width = 1; // 1 means float
spec->channels = channelcount;
spec->sample_rate = audiodevice().get_sample_rate();
- [Traverso-commit] traverso/src/core AudioClip.cpp,
Ben Levitt <=