Tag Parser  6.5.0
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
vorbisidentificationheader.h
Go to the documentation of this file.
1 #ifndef MEDIA_VORBISIDENTIFICATIONHEADER_H
2 #define MEDIA_VORBISIDENTIFICATIONHEADER_H
3 
4 #include "../global.h"
5 
6 #include <c++utilities/conversion/types.h>
7 
8 namespace Media {
9 
10 class OggIterator;
11 
13 {
14 public:
16 
17  void parseHeader(OggIterator &iterator);
18 
19  uint32 version() const;
20  byte channels() const;
21  uint32 sampleRate() const;
22  uint32 maxBitrate() const;
23  uint32 nominalBitrate() const;
24  uint32 minBitrate() const;
25  byte blockSize() const;
26  byte framingFlag() const;
27 
28 private:
29  uint32 m_version;
30  byte m_channels;
31  uint32 m_sampleRate;
32  uint32 m_maxBitrate;
33  uint32 m_nominalBitrate;
34  uint32 m_minBitrate;
35  byte m_blockSize;
36  byte m_framingFlag;
37 };
38 
43  m_version(0),
44  m_channels(0),
45  m_sampleRate(0),
46  m_maxBitrate(0),
47  m_nominalBitrate(0),
48  m_minBitrate(0),
49  m_blockSize(0),
50  m_framingFlag(0)
51 {}
52 
54 {
55  return m_version;
56 }
57 
59 {
60  return m_channels;
61 }
62 
64 {
65  return m_sampleRate;
66 }
67 
69 {
70  return m_maxBitrate;
71 }
72 
74 {
75  return m_nominalBitrate;
76 }
77 
79 {
80  return m_minBitrate;
81 }
82 
84 {
85  return m_blockSize;
86 }
87 
89 {
90  return m_framingFlag;
91 }
92 
93 }
94 
95 #endif // MEDIA_VORBISIDENTIFICATIONHEADER_H
The VorbisIdentificationHeader class is a Vorbis identification header parser.
The OggIterator class helps iterating through all segments of an OGG bitstream.
Definition: oggiterator.h:11
Contains all classes and functions of the TagInfo library.
Definition: exceptions.h:9
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.
VorbisIdentificationHeader()
Constructs a new Vorbis identification header.
TAG_PARSER_EXPORT const char * version()