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

Unified Diff: remoting/host/audio_capturer.h

Issue 2254673002: Remove dependency on AudioStub in ConnectionToClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win Created 4 years, 3 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
« no previous file with comments | « remoting/host/BUILD.gn ('k') | remoting/host/audio_pump.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/audio_capturer.h
diff --git a/remoting/host/audio_capturer.h b/remoting/host/audio_capturer.h
index c79949903ca892247fae2bcf84b459566dcf366d..5748eb311f410e308bf7fe23e75992465c7222cd 100644
--- a/remoting/host/audio_capturer.h
+++ b/remoting/host/audio_capturer.h
@@ -7,29 +7,19 @@
#include <memory>
-#include "base/callback.h"
+#include "remoting/protocol/audio_source.h"
namespace remoting {
-class AudioPacket;
-
-class AudioCapturer {
+class AudioCapturer : public protocol::AudioSource {
public:
- typedef base::Callback<void(std::unique_ptr<AudioPacket> packet)>
- PacketCapturedCallback;
-
- virtual ~AudioCapturer() {}
+ ~AudioCapturer() override {}
// Returns true if audio capturing is supported on this platform. If this
// returns true, then Create() must not return nullptr.
static bool IsSupported();
static std::unique_ptr<AudioCapturer> Create();
- // Capturers should sample at a 44.1 or 48 kHz sampling rate, in uncompressed
- // PCM stereo format. Capturers may choose the number of frames per packet.
- // Returns true on success.
- virtual bool Start(const PacketCapturedCallback& callback) = 0;
-
static bool IsValidSampleRate(int sample_rate);
};
« no previous file with comments | « remoting/host/BUILD.gn ('k') | remoting/host/audio_pump.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698