** Need command line options for verbose and debug output
** Should comment the reading and writing of files to document the file formats
**
-** $Id: wdq2wav.cpp,v 1.2 2003/01/21 03:03:49 kevin Exp $
+** $Id: wdq2wav.cpp,v 1.6 2003/01/21 03:06:59 kevin Exp $
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
static bool g_debug = true;
void
-error_msg (char *msg)
+error_msg (const char *msg)
{
fprintf (stderr, "%s\n",msg);
}
void
-info_msg (char* msg)
+info_msg (const char* msg)
{
fprintf (stdout, "%s\n", msg);
}
if (*channel_endptr != 0) {
std::ostringstream os;
os << "Error: Channel " << argv[2] << " is not an integer";
- error_str (os.str().c_str());
+ error_msg (os.str().c_str());
usage();
return(1);
}
if ((m_fd = open (m_strFile.c_str(), O_WRONLY | O_TRUNC | O_CREAT,
S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)) == 0) {
std::ostringstream os;
- os << "Error opening output file ", << m_strFile.c_str();
- error_msg (os);
+ os << "Error opening output file " << m_strFile.c_str();
+ error_msg (os.str().c_str());
return false;
}