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

Side by Side Diff: webrtc/modules/audio_device/dummy/audio_device_dummy.cc

Issue 2783673002: Make dummy device succeed at stopping recording/playout. (Closed)
Patch Set: Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 bool AudioDeviceDummy::PlayoutIsInitialized() const { return false; } 62 bool AudioDeviceDummy::PlayoutIsInitialized() const { return false; }
63 63
64 int32_t AudioDeviceDummy::RecordingIsAvailable(bool& available) { return -1; } 64 int32_t AudioDeviceDummy::RecordingIsAvailable(bool& available) { return -1; }
65 65
66 int32_t AudioDeviceDummy::InitRecording() { return -1; } 66 int32_t AudioDeviceDummy::InitRecording() { return -1; }
67 67
68 bool AudioDeviceDummy::RecordingIsInitialized() const { return false; } 68 bool AudioDeviceDummy::RecordingIsInitialized() const { return false; }
69 69
70 int32_t AudioDeviceDummy::StartPlayout() { return -1; } 70 int32_t AudioDeviceDummy::StartPlayout() { return -1; }
71 71
72 int32_t AudioDeviceDummy::StopPlayout() { return -1; } 72 int32_t AudioDeviceDummy::StopPlayout() { return 0; }
73 73
74 bool AudioDeviceDummy::Playing() const { return false; } 74 bool AudioDeviceDummy::Playing() const { return false; }
75 75
76 int32_t AudioDeviceDummy::StartRecording() { return -1; } 76 int32_t AudioDeviceDummy::StartRecording() { return -1; }
77 77
78 int32_t AudioDeviceDummy::StopRecording() { return -1; } 78 int32_t AudioDeviceDummy::StopRecording() { return 0; }
79 79
80 bool AudioDeviceDummy::Recording() const { return false; } 80 bool AudioDeviceDummy::Recording() const { return false; }
81 81
82 int32_t AudioDeviceDummy::SetAGC(bool enable) { return -1; } 82 int32_t AudioDeviceDummy::SetAGC(bool enable) { return -1; }
83 83
84 bool AudioDeviceDummy::AGC() const { return false; } 84 bool AudioDeviceDummy::AGC() const { return false; }
85 85
86 int32_t AudioDeviceDummy::SetWaveOutVolume(uint16_t volumeLeft, 86 int32_t AudioDeviceDummy::SetWaveOutVolume(uint16_t volumeLeft,
87 uint16_t volumeRight) { 87 uint16_t volumeRight) {
88 return -1; 88 return -1;
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 void AudioDeviceDummy::ClearPlayoutWarning() {} 208 void AudioDeviceDummy::ClearPlayoutWarning() {}
209 209
210 void AudioDeviceDummy::ClearPlayoutError() {} 210 void AudioDeviceDummy::ClearPlayoutError() {}
211 211
212 void AudioDeviceDummy::ClearRecordingWarning() {} 212 void AudioDeviceDummy::ClearRecordingWarning() {}
213 213
214 void AudioDeviceDummy::ClearRecordingError() {} 214 void AudioDeviceDummy::ClearRecordingError() {}
215 215
216 void AudioDeviceDummy::AttachAudioBuffer(AudioDeviceBuffer* audioBuffer) {} 216 void AudioDeviceDummy::AttachAudioBuffer(AudioDeviceBuffer* audioBuffer) {}
217 } // namespace webrtc 217 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698