- if (g_verbose) {
- std::ostringstream os;
- os << wdq_fname << ": Samples " << wdq.m_nSamples <<
- ", Channels " << wdq.m_nChannels <<
- ", Sample Rate " << wdq.m_sample_rate;
- info_msg (os.str().c_str());
+
+ if (wdq.any_packed_channels()) {
+ std::ostringstream os;
+ os << "File contains 'packed' channels." << std::endl;
+ os << "Convert to 'Advanced CODAS headers' before processing with wdq2wav.";
+ error_msg (os.str().c_str());
+ return false;
+ }
+
+ if (! g_quiet || g_verbose || g_debug) {
+ std::ostringstream os1;
+ os1 << "File: " << wdq_fname;
+ info_msg (os1.str().c_str());
+ std::ostringstream os;
+ os << "Legacy Format: ";
+ if (wdq.m_bLegacy_format)
+ os << "Yes";
+ else
+ os << "No";
+ info_msg(os.str().c_str());
+ std::ostringstream os2;
+ time_t time = wdq.m_time_acq_start;
+ struct tm* tm = gmtime (&time);
+ os2 << " Time File Creation: " << asctime(tm);
+ info_msg_sans_newline (os2.str().c_str());
+ std::ostringstream os3;
+ time = wdq.m_time_acq_stop;
+ tm = gmtime (&time);
+ os3 << " Time File Written: " << asctime(tm);
+ info_msg_sans_newline (os3.str().c_str());
+ std::ostringstream os4;
+ os4 << " Samples: " << wdq.m_nSamples <<
+ ", Channels: " << wdq.m_nChannels <<
+ ", Sample Rate: " << wdq.m_sample_rate;
+ info_msg (os4.str().c_str());