Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Unified Diff: remoting/client/audio_player.h

Issue 2384063004: Move audio decoding to protocol layer (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: remoting/client/audio_player.h
diff --git a/remoting/client/audio_player.h b/remoting/client/audio_player.h
index 7422c6660b2d4106e06ba82ed4932d56d9a64340..b19e6e5a173b653bf2708c81dd70d81db96c9bde 100644
--- a/remoting/client/audio_player.h
+++ b/remoting/client/audio_player.h
@@ -13,12 +13,12 @@
#include "base/macros.h"
#include "base/synchronization/lock.h"
-#include "remoting/client/audio_consumer.h"
#include "remoting/proto/audio.pb.h"
+#include "remoting/protocol/audio_stub.h"
namespace remoting {
-class AudioPlayer : public AudioConsumer {
+class AudioPlayer : public protocol::AudioStub {
public:
// The number of channels in the audio stream (only supporting stereo audio
// for now).
@@ -27,8 +27,9 @@ class AudioPlayer : public AudioConsumer {
~AudioPlayer() override;
- // AudioConsumer implementation.
- void AddAudioPacket(std::unique_ptr<AudioPacket> packet) override;
+ // protocol::AudioStub implementation.
+ void ProcessAudioPacket(std::unique_ptr<AudioPacket> packet,
+ const base::Closure& done) override;
protected:
AudioPlayer();

Powered by Google App Engine
This is Rietveld 408576698