Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

WavFormatChunk.h

Go to the documentation of this file.
00001 /* 00002 * steghide 0.5.1 - a steganography program 00003 * Copyright (C) 1999-2003 Stefan Hetzl <shetzl@chello.at> 00004 * 00005 * This program is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU General Public License 00007 * as published by the Free Software Foundation; either version 2 00008 * of the License, or (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 * 00019 */ 00020 00021 #ifndef SH_WAVFORMATCHUNK_H 00022 #define SH_WAVFORMATCHUNK_H 00023 00024 #include "common.h" 00025 #include "WavChunk.h" 00026 00027 class BinaryIO ; 00028 00029 class WavFormatChunk : public WavChunk { 00030 public: 00031 WavFormatChunk (void) : 00032 WavChunk() {} ; 00033 WavFormatChunk (WavChunkHeader *chh) : 00034 WavChunk(chh) {} ; 00035 WavFormatChunk (WavChunkHeader *chh, BinaryIO *io) : 00036 WavChunk(chh) { read(io) ; } ; 00037 00038 void read (BinaryIO *io) ; 00039 void write (BinaryIO *io) ; 00040 00041 UWORD16 getFormatTag (void) const 00042 { return FormatTag ; } ; 00043 00044 UWORD16 getBitsPerSample (void) const 00045 { return BitsPerSample ; } ; 00046 00047 static const UWORD16 FormatPCM = 0x0001 ; 00048 00049 private: 00050 UWORD16 FormatTag ; 00051 UWORD16 Channels ; 00052 UWORD32 SamplesPerSec ; 00053 UWORD32 AvgBytesPerSec ; 00054 UWORD16 BlockAlign ; 00055 UWORD16 BitsPerSample ; 00056 UWORD16 AdditionalSize ; 00057 } ; 00058 00059 #endif // ndef SH_WAVCHUNKFORMAT_H

Generated on Fri Jul 16 19:41:21 2004 for steghide by doxygen 1.3.7