Tag Parser  6.4.0
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
mpegaudioframestream.h
Go to the documentation of this file.
1 #ifndef MPEGAUDIOFRAMESTREAM_H
2 #define MPEGAUDIOFRAMESTREAM_H
3 
4 #include "./mpegaudioframe.h"
5 
6 #include "../abstracttrack.h"
7 
8 #include <list>
9 
10 namespace Media
11 {
12 
14 {
15 public:
16  MpegAudioFrameStream(std::iostream &stream, uint64 startOffset);
18 
19  TrackType type() const;
20 
21  static void addInfo(const MpegAudioFrame &frame, AbstractTrack &track);
22 
23 protected:
24  void internalParseHeader();
25 
26 private:
27  std::list<MpegAudioFrame> m_frames;
28 };
29 
33 inline MpegAudioFrameStream::MpegAudioFrameStream(std::iostream &stream, uint64 startOffset) :
34  AbstractTrack(stream, startOffset)
35 {
37 }
38 
40 {}
41 
43 {
45 }
46 
47 }
48 
49 #endif // MPEGAUDIOFRAMESTREAM_H
TrackType
Specifies the track type.
Definition: abstracttrack.h:28
The AbstractTrack class parses and stores technical information about video, audio and other kinds of...
Definition: abstracttrack.h:40
Implementation of Media::AbstractTrack MPEG audio streams.
The MpegAudioFrame class is used to parse MPEG audio frames.
TrackType type() const
Returns the type of the track if known; otherwise returns TrackType::Unspecified. ...
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.
MpegAudioFrameStream(std::iostream &stream, uint64 startOffset)
Constructs a new track for the stream at the specified startOffset.