3#include "../ogg/oggiterator.h"
5#include "../exceptions.h"
7#include <c++utilities/conversion/binaryconversion.h>
27 iterator.
read(buff, 8);
28 if (BE::toUInt64(buff) != 0x4F70757348656164u) {
31 iterator.
read(buff,
sizeof(buff));
32 m_version =
static_cast<std::uint8_t
>(*(buff));
33 m_channels =
static_cast<std::uint8_t
>(*(buff + 1));
34 m_preSkip = LE::toUInt16(buff + 2);
35 m_sampleRate = LE::toUInt32(buff + 4);
36 m_outputGain = LE::toUInt16(buff + 8);
37 m_channelMap =
static_cast<std::uint8_t
>(*(buff + 10));
The exception that is thrown when the data to be parsed or to be made seems invalid and therefore can...
The OggIterator class helps iterating through all segments of an OGG bitstream.
void read(char *buffer, std::size_t count)
Reads count bytes from the OGG stream and writes it to the specified buffer.
Contains all classes and functions of the TagInfo library.