00001 00002 /****************** <SYN heading BEGIN do not edit this line> ***************** 00003 * 00004 * subsynth - modular audio synthesizer 00005 * subsynth is (C) Copyright 2001-2002 by Kevin Meinert 00006 * 00007 * Original Author: Kevin Meinert 00008 * 00009 * This library is free software; you can redistribute it and/or 00010 * modify it under the terms of the GNU Library General Public 00011 * License as published by the Free Software Foundation; either 00012 * version 2 of the License, or (at your option) any later version. 00013 * 00014 * This library is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 * Library General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU Library General Public 00020 * License along with this library; if not, write to the 00021 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00022 * Boston, MA 02111-1307, USA. 00023 * 00024 * ----------------------------------------------------------------- 00025 * File: $RCSfile: WavHeader.h,v $ 00026 * Date modified: $Date: 2002/01/04 16:21:00 $ 00027 * Version: $Revision: 1.7 $ 00028 * ----------------------------------------------------------------- 00029 * 00030 ****************** <SYN heading END do not edit this line> ******************/ 00031 00032 00033 00034 #ifndef SUBSYNTH_WAVE_HEADER 00035 #define SUBSYNTH_WAVE_HEADER 00036 00037 00038 namespace syn 00039 { 00040 00041 class WavHeader 00042 { 00043 public: 00044 unsigned char riff[4]; // 'RIFF' 00045 unsigned int riffSize; 00046 unsigned char wave[4]; // 'WAVE' 00047 unsigned char fmt[4]; // 'fmt ' 00048 unsigned int fmtSize; 00049 unsigned short Format; 00050 unsigned short Channels; 00051 unsigned int SamplesPerSec; 00052 unsigned int BytesPerSec; 00053 unsigned short BlockAlign; 00054 unsigned short BitsPerSample; 00055 unsigned char data[4]; // 'data' 00056 unsigned int dataSize; 00057 }; 00058 } 00059 00060 #endif