Tag Parser
6.2.2
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
flac
flactooggmappingheader.h
Go to the documentation of this file.
1
#ifndef MEDIA_FLACIDENTIFICATIONHEADER_H
2
#define MEDIA_FLACIDENTIFICATIONHEADER_H
3
4
#include "
./flacmetadata.h
"
5
6
namespace
Media
{
7
8
class
OggIterator;
9
10
class
TAG_PARSER_EXPORT
FlacToOggMappingHeader
11
{
12
public
:
13
FlacToOggMappingHeader
();
14
15
void
parseHeader(
OggIterator
&iterator);
16
17
byte majorVersion()
const
;
18
byte minorVersion()
const
;
19
uint16 headerCount()
const
;
20
const
FlacMetaDataBlockStreamInfo
&streamInfo()
const
;
21
22
private
:
23
byte m_majorVersion;
24
byte m_minorVersion;
25
uint16 m_headerCount;
26
FlacMetaDataBlockStreamInfo
m_streamInfo;
27
};
28
32
inline
FlacToOggMappingHeader::FlacToOggMappingHeader
() :
33
m_majorVersion(0),
34
m_minorVersion(0),
35
m_headerCount(0)
36
{}
37
41
inline
byte
FlacToOggMappingHeader::majorVersion
()
const
42
{
43
return
m_majorVersion;
44
}
45
49
inline
byte
FlacToOggMappingHeader::minorVersion
()
const
50
{
51
return
m_minorVersion;
52
}
53
57
inline
uint16
FlacToOggMappingHeader::headerCount
()
const
58
{
59
return
m_headerCount;
60
}
61
65
inline
const
FlacMetaDataBlockStreamInfo
&
FlacToOggMappingHeader::streamInfo
()
const
66
{
67
return
m_streamInfo;
68
}
69
70
}
71
72
#endif // MEDIA_FLACIDENTIFICATIONHEADER_H
Media::FlacToOggMappingHeader
The FlacToOggMappingHeader class is a FLAC-to-Ogg mapping header parser.
Definition:
flactooggmappingheader.h:10
Media::FlacToOggMappingHeader::minorVersion
byte minorVersion() const
Returns the version for the mapping (which should be 0 currently).
Definition:
flactooggmappingheader.h:49
flacmetadata.h
Media::FlacMetaDataBlockStreamInfo
The FlacMetaDataBlockStreamInfo class is a FLAC "METADATA_BLOCK_STREAMINFO" parser.
Definition:
flacmetadata.h:119
Media::FlacToOggMappingHeader::FlacToOggMappingHeader
FlacToOggMappingHeader()
Constructs a new FLAC identification header.
Definition:
flactooggmappingheader.h:32
Media::FlacToOggMappingHeader::headerCount
uint16 headerCount() const
Returns the number of header (non-audio) packets, not including this one.
Definition:
flactooggmappingheader.h:57
Media::FlacToOggMappingHeader::majorVersion
byte majorVersion() const
Returns the major version for the mapping (which should be 1 currently).
Definition:
flactooggmappingheader.h:41
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
Media::FlacToOggMappingHeader::streamInfo
const FlacMetaDataBlockStreamInfo & streamInfo() const
Returns the stream info.
Definition:
flactooggmappingheader.h:65
TAG_PARSER_EXPORT
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.
Generated on Wed May 24 2017 23:42:21 for Tag Parser by
1.8.13