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

Unified Diff: remoting/host/audio_capturer_win.cc

Issue 10907041: Implement Linux audio capturer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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/audio_capturer_win.h ('k') | remoting/host/chromoting_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/audio_capturer_win.cc
diff --git a/remoting/host/audio_capturer_win.cc b/remoting/host/audio_capturer_win.cc
index 6479afaad5a453d216cb2614a216d6f822dc3056..90714ac2fd67e2b25f4ac609a8d8ca47931666d0 100644
--- a/remoting/host/audio_capturer_win.cc
+++ b/remoting/host/audio_capturer_win.cc
@@ -199,7 +199,7 @@ bool AudioCapturerWin::Start(const PacketCapturedCallback& callback) {
void AudioCapturerWin::Stop() {
DCHECK(thread_checker_.CalledOnValidThread());
- DCHECK(IsRunning());
+ DCHECK(IsStarted());
capture_timer_.reset();
mm_device_.Release();
@@ -211,7 +211,7 @@ void AudioCapturerWin::Stop() {
thread_checker_.DetachFromThread();
}
-bool AudioCapturerWin::IsRunning() {
+bool AudioCapturerWin::IsStarted() {
DCHECK(thread_checker_.CalledOnValidThread());
return capture_timer_.get() != NULL;
}
@@ -219,7 +219,7 @@ bool AudioCapturerWin::IsRunning() {
void AudioCapturerWin::DoCapture() {
DCHECK(AudioCapturer::IsValidSampleRate(sampling_rate_));
DCHECK(thread_checker_.CalledOnValidThread());
- DCHECK(IsRunning());
+ DCHECK(IsStarted());
// Fetch all packets from the audio capture endpoint buffer.
while (true) {
@@ -279,6 +279,10 @@ bool AudioCapturerWin::IsPacketOfSilence(
return true;
}
+bool AudioCapturer::IsSupported() {
+ return true;
+}
+
scoped_ptr<AudioCapturer> AudioCapturer::Create() {
return scoped_ptr<AudioCapturer>(new AudioCapturerWin());
}
« no previous file with comments | « remoting/host/audio_capturer_win.h ('k') | remoting/host/chromoting_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698