25#include "audio/audiostream.h"
26#include "audio/decoders/wma.h"
27#include "common/array.h"
28#include "common/stream.h"
34 static const int64 kNoTimestamp = (-0x7fffffffffffffffLL - 1);
35 enum StreamType { kAudio, kVideo, kData, kUnknown };
36 enum ReadResult { kObject, kEnd, kError };
40 StreamType type = kUnknown;
41 uint64 timeOffset = 0;
43 uint32 aspectNum = 0, aspectDen = 0;
51 int64 pts = kNoTimestamp, dts = kNoTimestamp;
53 bool keyframe =
false;
63 ReadResult readObject(
Object &
object);
65 uint64 getDuration()
const;
66 uint64 getSendDuration()
const;
67 uint64 getPreroll()
const;
68 bool endOfData()
const;
85 int getRate()
const {
return _rate; }
86 bool isStereo()
const {
return _channels == 2; }
Definition: audiostream.h:50
Definition: audiostream.h:212