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

Unified Diff: remoting/host/audio_capturer_win.cc

Issue 866863004: Replace AudioScheduler with AudioPump. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mouse_cursor_pipe
Patch Set: Created 5 years, 10 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/host/audio_capturer_win.cc
diff --git a/remoting/host/audio_capturer_win.cc b/remoting/host/audio_capturer_win.cc
index b06c72247892cd5732b015193f08593687119a93..7e8cea4f2781d2cfe34f7f27b8d2bf12cd4df241 100644
--- a/remoting/host/audio_capturer_win.cc
+++ b/remoting/host/audio_capturer_win.cc
@@ -200,28 +200,9 @@ bool AudioCapturerWin::Start(const PacketCapturedCallback& callback) {
return true;
}
-void AudioCapturerWin::Stop() {
- DCHECK(thread_checker_.CalledOnValidThread());
- DCHECK(IsStarted());
-
- capture_timer_.reset();
- mm_device_.Release();
- audio_client_.Release();
- audio_capture_client_.Release();
- wave_format_ex_.Reset(nullptr);
-
- thread_checker_.DetachFromThread();
-}
-
-bool AudioCapturerWin::IsStarted() {
- DCHECK(thread_checker_.CalledOnValidThread());
- return capture_timer_.get() != nullptr;
-}
-
void AudioCapturerWin::DoCapture() {
DCHECK(AudioCapturer::IsValidSampleRate(sampling_rate_));
DCHECK(thread_checker_.CalledOnValidThread());
- DCHECK(IsStarted());
// Fetch all packets from the audio capture endpoint buffer.
HRESULT hr = S_OK;

Powered by Google App Engine
This is Rietveld 408576698