summaryrefslogtreecommitdiff
path: root/audio/quelcom/files/patch-lib::qwav.cc
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2004-02-14 12:54:17 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2004-02-14 12:54:17 +0000
commit51505fe87160d96ee169096629f226ab1de71461 (patch)
tree3004c76cf66fa92cf01f8fa03dbcb9ff81517e42 /audio/quelcom/files/patch-lib::qwav.cc
parent- Update to version 0.99.2 (diff)
- Update to version 0.4.0
PR: ports/62813 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=100910
Diffstat (limited to 'audio/quelcom/files/patch-lib::qwav.cc')
-rw-r--r--audio/quelcom/files/patch-lib::qwav.cc42
1 files changed, 42 insertions, 0 deletions
diff --git a/audio/quelcom/files/patch-lib::qwav.cc b/audio/quelcom/files/patch-lib::qwav.cc
new file mode 100644
index 000000000000..92249a790c43
--- /dev/null
+++ b/audio/quelcom/files/patch-lib::qwav.cc
@@ -0,0 +1,42 @@
+--- lib/qwav.cc.orig Fri Feb 23 21:29:12 2001
++++ lib/qwav.cc Fri Feb 13 19:17:38 2004
+@@ -2,6 +2,8 @@
+ * implementation functions for class qwav
+ */
+
++#include <iostream>
++
+ # include "qwav.hh"
+ # include "qexception.hh"
+
+@@ -37,16 +39,28 @@
+ msduration = getMsDuration();
+
+ // cal posar les milèssimes?
++ *os << getName() << ": " << getSampleRate() << " Hz "
++ << getBitsPerSample() << " bits "
++ << ((getChannels()==1)?"mono":"stereo") << ' ';
++ os->width(2);
++ *os << msduration/60000 << ':';
++ os->width(2);
++ os->fill('0');
++ *os << (msduration/1000)%60 << '.';
++ os->width(2);
++ os->fill('0');
++ *os << (msduration%1000)/10;
++ /*
+ os->form("%s: %u Hz %u bits %s %2u:%02u.%02u",
+ getName().c_str(),
+ getSampleRate(),getBitsPerSample(),
+ ((getChannels()==1)?"mono":"stereo"),
+ msduration/60000,(msduration/1000)%60,(msduration%1000)/10);
+-
++ */
+ }
+
+
+-qwav::qwav(string name, u_int32_t flags=READ)
++qwav::qwav(string name, u_int32_t flags)
+ : qfile (name,flags),
+ qwavheader(getMap(),getSize()) {
+