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

Side by Side Diff: media/audio/fake_audio_manager.cc

Issue 163343002: Reland 153623004: Remove the unified IO code on the browser (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fixed the cras bot Created 6 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 unified diff | Download patch
« no previous file with comments | « media/audio/fake_audio_manager.h ('k') | media/audio/mac/aggregate_device_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/audio/fake_audio_manager.h" 5 #include "media/audio/fake_audio_manager.h"
6 6
7 namespace media { 7 namespace media {
8 8
9 namespace { 9 namespace {
10 10
(...skipping 15 matching lines...) Expand all
26 bool FakeAudioManager::HasAudioInputDevices() { return false; } 26 bool FakeAudioManager::HasAudioInputDevices() { return false; }
27 27
28 // Implementation of AudioManagerBase. 28 // Implementation of AudioManagerBase.
29 AudioOutputStream* FakeAudioManager::MakeLinearOutputStream( 29 AudioOutputStream* FakeAudioManager::MakeLinearOutputStream(
30 const AudioParameters& params) { 30 const AudioParameters& params) {
31 return FakeAudioOutputStream::MakeFakeStream(this, params); 31 return FakeAudioOutputStream::MakeFakeStream(this, params);
32 } 32 }
33 33
34 AudioOutputStream* FakeAudioManager::MakeLowLatencyOutputStream( 34 AudioOutputStream* FakeAudioManager::MakeLowLatencyOutputStream(
35 const AudioParameters& params, 35 const AudioParameters& params,
36 const std::string& device_id, 36 const std::string& device_id) {
37 const std::string& input_device_id) {
38 return FakeAudioOutputStream::MakeFakeStream(this, params); 37 return FakeAudioOutputStream::MakeFakeStream(this, params);
39 } 38 }
40 39
41 AudioInputStream* FakeAudioManager::MakeLinearInputStream( 40 AudioInputStream* FakeAudioManager::MakeLinearInputStream(
42 const AudioParameters& params, 41 const AudioParameters& params,
43 const std::string& device_id) { 42 const std::string& device_id) {
44 return FakeAudioInputStream::MakeFakeStream(this, params); 43 return FakeAudioInputStream::MakeFakeStream(this, params);
45 } 44 }
46 45
47 AudioInputStream* FakeAudioManager::MakeLowLatencyInputStream( 46 AudioInputStream* FakeAudioManager::MakeLowLatencyInputStream(
(...skipping 26 matching lines...) Expand all
74 } 73 }
75 74
76 AudioParameters FakeAudioManager::GetInputStreamParameters( 75 AudioParameters FakeAudioManager::GetInputStreamParameters(
77 const std::string& device_id) { 76 const std::string& device_id) {
78 return AudioParameters( 77 return AudioParameters(
79 AudioParameters::AUDIO_PCM_LOW_LATENCY, CHANNEL_LAYOUT_STEREO, 78 AudioParameters::AUDIO_PCM_LOW_LATENCY, CHANNEL_LAYOUT_STEREO,
80 kDefaultSampleRate, 16, kDefaultInputBufferSize); 79 kDefaultSampleRate, 16, kDefaultInputBufferSize);
81 } 80 }
82 81
83 } // namespace media 82 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/fake_audio_manager.h ('k') | media/audio/mac/aggregate_device_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698