projects
/
wdq2wav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
191a48d
)
Fix sample rate for multichannel, non-legacy files
author
Kevin M. Rosenberg
<kevin@rosenberg.net>
Wed, 3 Jul 2013 04:47:28 +0000
(22:47 -0600)
committer
Kevin M. Rosenberg
<kevin@rosenberg.net>
Wed, 3 Jul 2013 04:47:28 +0000
(22:47 -0600)
wdq2wav.cpp
patch
|
blob
|
history
diff --git
a/wdq2wav.cpp
b/wdq2wav.cpp
index be084f8bfb91d39b164b9de0664870c3bdf99234..23e764bef1631d44f33b03372ab6c449c4bdc0fc 100644
(file)
--- a/
wdq2wav.cpp
+++ b/
wdq2wav.cpp
@@
-467,7
+467,7
@@
WindaqFile::ReadHeader ()
if (m_bLegacy_format)
m_sample_rate = (double) m_sr_numer / (double) (m_sr_denom * m_nChannels);
else
if (m_bLegacy_format)
m_sample_rate = (double) m_sr_numer / (double) (m_sr_denom * m_nChannels);
else
-
m_sample_rate = (double) m_nChannels
/ m_time_between_channel_samples;
+
m_sample_rate = (double) 1
/ m_time_between_channel_samples;
lseek (m_fd, 36, SEEK_SET);
if (! read_int4 (m_fd, m_time_acq_start))
lseek (m_fd, 36, SEEK_SET);
if (! read_int4 (m_fd, m_time_acq_start))