1 #ifndef TAG_PARSER_OGGCONTAINER_H 2 #define TAG_PARSER_OGGCONTAINER_H 8 #include "../vorbis/vorbiscomment.h" 10 #include "../genericcontainer.h" 13 #include <unordered_map> 46 , firstSegmentIndex(0)
49 , lastMetaDataBlock(false)
73 const char *typeName()
const;
74 bool supportsTarget()
const;
133 bool isChecksumValidationEnabled()
const;
134 void setChecksumValidationEnabled(
bool enabled);
135 void reset()
override;
139 std::size_t tagCount()
const override;
140 bool removeTag(
Tag *tag)
override;
141 void removeAllTags()
override;
144 void internalParseHeader(
Diagnostics &diag)
override;
145 void internalParseTags(
Diagnostics &diag)
override;
146 void internalParseTracks(
Diagnostics &diag)
override;
150 void announceComment(
155 std::unordered_map<uint32, std::vector<std::unique_ptr<OggStream>>::size_type> m_streamsBySerialNo;
158 bool m_validateChecksums;
171 return m_validateChecksums;
180 m_validateChecksums = enabled;
185 #endif // TAG_PARSER_OGGCONTAINER_H
bool isChecksumValidationEnabled() const
Returns whether checksum validation is enabled.
The OggParameter struct holds the OGG parameter for a VorbisComment.
GeneralMediaFormat
The GeneralMediaFormat enum specifies the general format of media data (PCM, MPEG-4, PNG, ...).
TAG_PARSER_EXPORT const char * comment()
std::size_t lastSegmentIndex
void set(std::size_t pageIndex, std::size_t segmentIndex, bool lastMetaDataBlock, GeneralMediaFormat streamFormat=GeneralMediaFormat::Vorbis)
Sets the firstPageIndex/lastPageIndex, the firstSegmentIndex/lastSegmentIndex, whether the associated...
Contains utility classes helping to read and write streams.
std::size_t firstSegmentIndex
void setChecksumValidationEnabled(bool enabled)
Sets whether checksum validation is enabled.
std::size_t lastPageIndex
GeneralMediaFormat streamFormat
TagType
Specifies the tag type.
OggParameter()
Creates new parameters.
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.
std::size_t firstPageIndex