// Copyright 2018 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef REMOTING_CLIENT_AUDIO_AUDIO_PLAYBACK_STREAM_H_ #define REMOTING_CLIENT_AUDIO_AUDIO_PLAYBACK_STREAM_H_ #include <memory> #include "base/memory/scoped_refptr.h" #include "base/memory/weak_ptr.h" #include "base/task/single_thread_task_runner.h" #include "base/threading/thread_checker.h" #include "remoting/protocol/audio_stub.h" namespace remoting { class AudioPlaybackSink; // An AudioStub implementation that buffers AudioPackets and feeds them to // an AudioPlaybackSink. // AudioPlaybackStream must be used and destroyed on the same thread after it // is created, while it will use and destroy |audio_sink| on the thread of // |audio_task_runner|. class AudioPlaybackStream : public protocol::AudioStub { … }; } // namespace remoting #endif // REMOTING_CLIENT_AUDIO_AUDIO_PLAYBACK_STREAM_H_