Searched defs:NullSink (Results 1 – 1 of 1) sorted by relevance
78 struct NullSink : public DevicePortSink { struct79 NullSink(const AudioConfig &cfg, uint64_t &frames) in NullSink() argument85 Result getPresentationPosition(uint64_t &frames, TimeSpec &ts) override { in getPresentationPosition()92 int write(const void *, size_t nBytes) override { in write()98 void simulatePresentationPosition() { in simulatePresentationPosition()113 static std::unique_ptr<NullSink> create(const AudioConfig &cfg, in create()119 uint64_t &mFrames;120 const unsigned mSampleRateHz;121 const unsigned mNChannels;122 uint64_t mAvailableFrames = 0;[all …]