Tag Parser
6.4.1
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
opus
opusidentificationheader.h
Go to the documentation of this file.
1
#ifndef MEDIA_OPUSIDENTIFICATIONHEADER_H
2
#define MEDIA_OPUSIDENTIFICATIONHEADER_H
3
4
#include "../global.h"
5
6
#include <c++utilities/conversion/types.h>
7
8
namespace
Media
{
9
10
class
OggIterator;
11
12
class
TAG_PARSER_EXPORT
OpusIdentificationHeader
13
{
14
public
:
15
OpusIdentificationHeader
();
16
17
void
parseHeader(
OggIterator
&iterator);
18
19
byte
version
()
const
;
20
byte channels()
const
;
21
uint16 preSkip()
const
;
22
uint32 sampleRate()
const
;
23
uint16 outputGain()
const
;
24
byte channelMap()
const
;
25
26
private
:
27
byte m_version;
28
byte m_channels;
29
uint16 m_preSkip;
30
uint32 m_sampleRate;
31
uint16 m_outputGain;
32
byte m_channelMap;
33
};
34
38
inline
OpusIdentificationHeader::OpusIdentificationHeader
() :
39
m_version(0),
40
m_channels(0),
41
m_sampleRate(0),
42
m_outputGain(0),
43
m_channelMap(0)
44
{}
45
49
inline
byte
OpusIdentificationHeader::version
()
const
50
{
51
return
m_version;
52
}
53
57
inline
byte
OpusIdentificationHeader::channels
()
const
58
{
59
return
m_channels;
60
}
61
69
inline
uint16
OpusIdentificationHeader::preSkip
()
const
70
{
71
return
m_preSkip;
72
}
73
79
inline
uint32
OpusIdentificationHeader::sampleRate
()
const
80
{
81
return
m_sampleRate;
82
}
83
90
inline
uint16
OpusIdentificationHeader::outputGain
()
const
91
{
92
return
m_outputGain;
93
}
94
102
inline
byte
OpusIdentificationHeader::channelMap
()
const
103
{
104
return
m_channelMap;
105
}
106
107
}
108
109
#endif // MEDIA_OPUSIDENTIFICATIONHEADER_H
Media::OpusIdentificationHeader::channels
byte channels() const
Returns the number of channels for the Opus stream.
Definition:
opusidentificationheader.h:57
Media::OpusIdentificationHeader::channelMap
byte channelMap() const
Returns the channel mapping family.
Definition:
opusidentificationheader.h:102
Media::OpusIdentificationHeader::outputGain
uint16 outputGain() const
Returns the output gain.
Definition:
opusidentificationheader.h:90
Media::OpusIdentificationHeader::preSkip
uint16 preSkip() const
Returns "pre-skip" value for the Opus stream.
Definition:
opusidentificationheader.h:69
Media::OpusIdentificationHeader::sampleRate
uint32 sampleRate() const
Returns the INPUT sample rate.
Definition:
opusidentificationheader.h:79
Media::OpusIdentificationHeader
The OpusIdentificationHeader class is an Opus identification header parser.
Definition:
opusidentificationheader.h:12
Media::OpusIdentificationHeader::version
byte version() const
Returns the version (which should be 1 currently).
Definition:
opusidentificationheader.h:49
Media::OpusIdentificationHeader::OpusIdentificationHeader
OpusIdentificationHeader()
Constructs a new Opus identification header.
Definition:
opusidentificationheader.h:38
Media::OggIterator
The OggIterator class helps iterating through all segments of an OGG bitstream.
Definition:
oggiterator.h:11
Media
Contains all classes and functions of the TagInfo library.
Definition:
exceptions.h:9
TAG_PARSER_EXPORT
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.
Media::VorbisCommentIds::version
TAG_PARSER_EXPORT const char * version()
Definition:
vorbiscommentids.h:28
Generated on Thu Sep 14 2017 23:03:28 for Tag Parser by
1.8.13