Tag Parser
7.1.0
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
|
The OpusIdentificationHeader class is an Opus identification header parser. More...
#include <opusidentificationheader.h>
Public Member Functions | |
OpusIdentificationHeader () | |
Constructs a new Opus identification header. More... | |
void | parseHeader (OggIterator &iterator) |
Parses the Opus identification header which is read using the specified iterator. More... | |
byte | version () const |
Returns the version (which should be 1 currently). More... | |
byte | channels () const |
Returns the number of channels for the Opus stream. More... | |
uint16 | preSkip () const |
Returns "pre-skip" value for the Opus stream. More... | |
uint32 | sampleRate () const |
Returns the INPUT sample rate. More... | |
uint16 | outputGain () const |
Returns the output gain. More... | |
byte | channelMap () const |
Returns the channel mapping family. More... | |
The OpusIdentificationHeader class is an Opus identification header parser.
Definition at line 12 of file opusidentificationheader.h.
|
inline |
Constructs a new Opus identification header.
Definition at line 37 of file opusidentificationheader.h.
|
inline |
Returns the channel mapping family.
The channel mapping family indicates the order and semantic meaning of the various channels encoded in each Opus packet.
Definition at line 102 of file opusidentificationheader.h.
|
inline |
Returns the number of channels for the Opus stream.
Definition at line 57 of file opusidentificationheader.h.
|
inline |
Returns the output gain.
This is a gain to be applied by the decoder. Virtually all players and media frameworks should apply it by default.
Definition at line 90 of file opusidentificationheader.h.
void TagParser::OpusIdentificationHeader::parseHeader | ( | OggIterator & | iterator | ) |
Parses the Opus identification header which is read using the specified iterator.
Definition at line 24 of file opusidentificationheader.cpp.
|
inline |
Returns "pre-skip" value for the Opus stream.
This is the number of samples (at 48 kHz) to discard from the decoder output when starting playback, and also the number to subtract from a page's granule position to calculate its PCM sample position.
Definition at line 69 of file opusidentificationheader.h.
|
inline |
Returns the INPUT sample rate.
Definition at line 79 of file opusidentificationheader.h.
|
inline |
Returns the version (which should be 1 currently).
Definition at line 49 of file opusidentificationheader.h.