X-Git-Url: http://git.kpe.io/?p=wdq2wav.git;a=blobdiff_plain;f=wdq2wav.cpp;h=23e764bef1631d44f33b03372ab6c449c4bdc0fc;hp=be084f8bfb91d39b164b9de0664870c3bdf99234;hb=c4d6bc834d8ba6a3c3748996cd56706addfe4df2;hpb=191a48d05177c652a36e70fdd929eb9b09e83536 diff --git a/wdq2wav.cpp b/wdq2wav.cpp index be084f8..23e764b 100644 --- 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 - 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))