Tag Parser
7.1.0
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
|
The WaveFormatHeader class parses the WAVEFORMATEX structure defined by MS. More...
#include <waveaudiostream.h>
Public Member Functions | |
WaveFormatHeader () | |
Constructs a new WaveFormatHeader. More... | |
void | parse (IoUtilities::BinaryReader &reader) |
Parses the WAVE "fmt " header segment using the specified reader. More... | |
MediaFormat | format () const |
Returns the media format denoted by the format tag. More... | |
uint32 | bitrate () const |
Calculates the bitrate from the header data. More... | |
Public Attributes | |
uint16 | formatTag |
uint16 | channelCount |
uint16 | sampleRate |
uint16 | bytesPerSecond |
uint16 | chunkSize |
uint16 | bitsPerSample |
The WaveFormatHeader class parses the WAVEFORMATEX structure defined by MS.
Definition at line 8 of file waveaudiostream.h.
TagParser::WaveFormatHeader::WaveFormatHeader | ( | ) |
Constructs a new WaveFormatHeader.
Definition at line 24 of file waveaudiostream.cpp.
|
inline |
Calculates the bitrate from the header data.
Definition at line 27 of file waveaudiostream.h.
MediaFormat TagParser::WaveFormatHeader::format | ( | ) | const |
Returns the media format denoted by the format tag.
Definition at line 51 of file waveaudiostream.cpp.
void TagParser::WaveFormatHeader::parse | ( | IoUtilities::BinaryReader & | reader | ) |
Parses the WAVE "fmt " header segment using the specified reader.
Definition at line 38 of file waveaudiostream.cpp.
uint16 TagParser::WaveFormatHeader::bitsPerSample |
Definition at line 21 of file waveaudiostream.h.
uint16 TagParser::WaveFormatHeader::bytesPerSecond |
Definition at line 19 of file waveaudiostream.h.
uint16 TagParser::WaveFormatHeader::channelCount |
Definition at line 17 of file waveaudiostream.h.
uint16 TagParser::WaveFormatHeader::chunkSize |
Definition at line 20 of file waveaudiostream.h.
uint16 TagParser::WaveFormatHeader::formatTag |
Definition at line 16 of file waveaudiostream.h.
uint16 TagParser::WaveFormatHeader::sampleRate |
Definition at line 18 of file waveaudiostream.h.