Tag Parser
6.3.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 9 of file waveaudiostream.h.
Media::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 29 of file waveaudiostream.h.
MediaFormat Media::WaveFormatHeader::format | ( | ) | const |
Returns the media format denoted by the format tag.
Definition at line 50 of file waveaudiostream.cpp.
void Media::WaveFormatHeader::parse | ( | IoUtilities::BinaryReader & | reader | ) |
Parses the WAVE "fmt " header segment using the specified reader.
Definition at line 37 of file waveaudiostream.cpp.
uint16 Media::WaveFormatHeader::bitsPerSample |
Definition at line 23 of file waveaudiostream.h.
uint16 Media::WaveFormatHeader::bytesPerSecond |
Definition at line 21 of file waveaudiostream.h.
uint16 Media::WaveFormatHeader::channelCount |
Definition at line 19 of file waveaudiostream.h.
uint16 Media::WaveFormatHeader::chunkSize |
Definition at line 22 of file waveaudiostream.h.
uint16 Media::WaveFormatHeader::formatTag |
Definition at line 18 of file waveaudiostream.h.
uint16 Media::WaveFormatHeader::sampleRate |
Definition at line 20 of file waveaudiostream.h.