summaryrefslogtreecommitdiff
path: root/audio/csound6/files/patch-frontends__CsoundAC__Composition.cpp
diff options
context:
space:
mode:
authorDanilo Egea Gondolfo <danilo@FreeBSD.org>2014-01-10 18:05:29 +0000
committerDanilo Egea Gondolfo <danilo@FreeBSD.org>2014-01-10 18:05:29 +0000
commit411bac0c65ee297ed74d2335f68b9b57f7772ec6 (patch)
treefc19fceeac5f61f74eefcc55ab4163bcc9eeb99b /audio/csound6/files/patch-frontends__CsoundAC__Composition.cpp
parent- Update to 0.6.7 (diff)
- Copy from audio/csound and apply the patch. The API of the version 6 of csound is not compatible of version 5.
- Update from 5.18.02 to 6.02 - Add stage support - Use options helpers PR: ports/185351 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Diffstat (limited to 'audio/csound6/files/patch-frontends__CsoundAC__Composition.cpp')
-rw-r--r--audio/csound6/files/patch-frontends__CsoundAC__Composition.cpp37
1 files changed, 37 insertions, 0 deletions
diff --git a/audio/csound6/files/patch-frontends__CsoundAC__Composition.cpp b/audio/csound6/files/patch-frontends__CsoundAC__Composition.cpp
new file mode 100644
index 000000000000..fd03d322285e
--- /dev/null
+++ b/audio/csound6/files/patch-frontends__CsoundAC__Composition.cpp
@@ -0,0 +1,37 @@
+--- frontends/CsoundAC/Composition.cpp.orig
++++ frontends/CsoundAC/Composition.cpp
+@@ -22,6 +22,7 @@
+ #endif
+ #include "Composition.hpp"
+ #include "System.hpp"
++#include <cstdio>
+ #include <cstdlib>
+ #include <map>
+
+@@ -289,7 +290,7 @@
+ int Composition::normalizeOutputSoundfile(double levelDb)
+ {
+ char buffer[0x100];
+- std::snprintf(buffer,
++ snprintf(buffer,
+ 0x100,
+ "sox %s -V3 -b 32 -e floating-point %s gain -n %f\n",
+ getOutputSoundfileName().c_str(),
+@@ -307,7 +308,7 @@
+ int Composition::translateToCdAudio(double levelDb)
+ {
+ char buffer[0x100];
+- std::snprintf(buffer, 0x100, "sox %s -V3 -b 16 %s gain -n %f rate 44100\n",
++ snprintf(buffer, 0x100, "sox %s -V3 -b 16 %s gain -n %f rate 44100\n",
+ getOutputSoundfileName().c_str(),
+ getCdSoundfileName().c_str(),
+ levelDb);
+@@ -323,7 +324,7 @@
+ int Composition::translateToMp3(double bitrate, double levelDb)
+ {
+ char buffer[0x100];
+- std::snprintf(buffer,
++ snprintf(buffer,
+ 0x100,
+ "lame --verbose --disptime 2 --nohist --preset cd --tt %s --ta %s --tl %s --tc %s %s %s\n",
+ getTitle().c_str(),