Home
last modified time | relevance | path

Searched defs:NullSink (Results 1 – 1 of 1) sorted by relevance

/device/generic/goldfish/audio/
Ddevice_port_sink.cpp212 struct NullSink : public DevicePortSink { struct
213 NullSink(const AudioConfig &cfg, uint64_t &frames) in NullSink() function
219 Result getPresentationPosition(uint64_t &frames, TimeSpec &ts) override { in getPresentationPosition()
226 size_t write(float volume, size_t bytesToWrite, IReader &reader) override { in write()
242 void simulatePresentationPosition() { in simulatePresentationPosition()
257 static std::unique_ptr<NullSink> create(const AudioConfig &cfg, in create()
265 uint64_t &mFrames;
266 const unsigned mSampleRateHz;
267 const unsigned mNChannels;
268 uint64_t mAvailableFrames = 0;
[all …]