Tag Parser
8.2.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 | |
constexpr | WaveFormatHeader () |
Constructs a new WaveFormatHeader. More... | |
void | parse (IoUtilities::BinaryReader &reader) |
Parses the WAVE "fmt " header segment using the specified reader. More... | |
std::pair< MediaFormat, uint64 > | parseExt (IoUtilities::BinaryReader &reader, uint64 maxSize, Diagnostics &diag) |
Parses the WAVE "fmt " header segment using the specified reader. More... | |
MediaFormat | format () const |
Returns the media format denoted by the format tag. More... | |
constexpr 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.
constexpr TagParser::WaveFormatHeader::WaveFormatHeader | ( | ) |
Constructs a new WaveFormatHeader.
Definition at line 28 of file waveaudiostream.h.
constexpr uint32 TagParser::WaveFormatHeader::bitrate | ( | ) | const |
Calculates the bitrate from the header data.
Definition at line 41 of file waveaudiostream.h.
MediaFormat TagParser::WaveFormatHeader::format | ( | ) | const |
Returns the media format denoted by the format tag.
Definition at line 106 of file waveaudiostream.cpp.
void TagParser::WaveFormatHeader::parse | ( | IoUtilities::BinaryReader & | reader | ) |
Parses the WAVE "fmt " header segment using the specified reader.
Definition at line 25 of file waveaudiostream.cpp.
pair< MediaFormat, uint64 > TagParser::WaveFormatHeader::parseExt | ( | IoUtilities::BinaryReader & | reader, |
uint64 | maxSize, | ||
Diagnostics & | diag | ||
) |
Parses the WAVE "fmt " header segment using the specified reader.
Definition at line 39 of file waveaudiostream.cpp.
uint16 TagParser::WaveFormatHeader::bitsPerSample |
Definition at line 22 of file waveaudiostream.h.
uint16 TagParser::WaveFormatHeader::bytesPerSecond |
Definition at line 20 of file waveaudiostream.h.
uint16 TagParser::WaveFormatHeader::channelCount |
Definition at line 18 of file waveaudiostream.h.
uint16 TagParser::WaveFormatHeader::chunkSize |
Definition at line 21 of file waveaudiostream.h.
uint16 TagParser::WaveFormatHeader::formatTag |
Definition at line 17 of file waveaudiostream.h.
uint16 TagParser::WaveFormatHeader::sampleRate |
Definition at line 19 of file waveaudiostream.h.