1 /*****************************************************************************
5 ** Purpose: Header file for wdq2wav.cpp
6 ** Programmer: Kevin Rosenberg <kevin@rosenberg.net>
7 ** Date Started: Jan 2003
9 ** Copyright (c) 2003 Kevin Rosenberg
11 ** $Id: wdq2wav.h,v 1.5 2003/01/21 07:37:13 kevin Exp $
13 ** This program is free software; you can redistribute it and/or modify
14 ** it under the terms of the GNU General Public License (version 2) as
15 ** published by the Free Software Foundation.
17 ** This program is distributed in the hope that it will be useful,
18 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ** GNU General Public License for more details.
22 ** You should have received a copy of the GNU General Public License
23 ** along with this program; if not, write to the Free Software
24 ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 ******************************************************************************/
40 WindaqFile (const char* fname);
44 std::string m_strFile;
48 unsigned int m_nChannels;
49 unsigned int m_nSamples;
51 unsigned int m_sr_denom, m_sr_numer;
52 unsigned int m_nHeader_bytes, m_channel_offset, m_nBytes_channel_header;
53 unsigned int m_nData_bytes;
54 unsigned long int m_time_acq_start;
55 unsigned long int m_time_acq_stop;
62 unsigned int m_channel;
66 signed short int *m_data;
68 signed short int m_min_raw_data;
69 signed short int m_max_raw_data;
70 double m_max_scaled_data;
71 double m_min_scaled_data;
73 WindaqChannel (WindaqFile& wdq, const int channel);
77 bool read_channel_data();
84 std::string m_strFile;
87 unsigned long int m_nSamples;
89 unsigned int m_nChannels;
90 unsigned int m_nBitsPerSample;
91 unsigned int m_nBytesPerSample;
92 signed short int* m_data;
94 WavFile (WindaqChannel& wdq_channel, const char* fname);