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

Side by Side Diff: media/audio/audio_manager_base.h

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/audio_manager.h ('k') | media/audio/audio_manager_base.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ 5 #ifndef MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_
6 #define MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ 6 #define MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 virtual void ShowAudioInputSettings() OVERRIDE; 57 virtual void ShowAudioInputSettings() OVERRIDE;
58 58
59 virtual void GetAudioInputDeviceNames( 59 virtual void GetAudioInputDeviceNames(
60 AudioDeviceNames* device_names) OVERRIDE; 60 AudioDeviceNames* device_names) OVERRIDE;
61 61
62 virtual void GetAudioOutputDeviceNames( 62 virtual void GetAudioOutputDeviceNames(
63 AudioDeviceNames* device_names) OVERRIDE; 63 AudioDeviceNames* device_names) OVERRIDE;
64 64
65 virtual AudioOutputStream* MakeAudioOutputStream( 65 virtual AudioOutputStream* MakeAudioOutputStream(
66 const AudioParameters& params, 66 const AudioParameters& params,
67 const std::string& device_id, 67 const std::string& device_id) OVERRIDE;
68 const std::string& input_device_id) OVERRIDE;
69 68
70 virtual AudioInputStream* MakeAudioInputStream( 69 virtual AudioInputStream* MakeAudioInputStream(
71 const AudioParameters& params, const std::string& device_id) OVERRIDE; 70 const AudioParameters& params, const std::string& device_id) OVERRIDE;
72 71
73 virtual AudioOutputStream* MakeAudioOutputStreamProxy( 72 virtual AudioOutputStream* MakeAudioOutputStreamProxy(
74 const AudioParameters& params, 73 const AudioParameters& params,
75 const std::string& device_id, 74 const std::string& device_id) OVERRIDE;
76 const std::string& input_device_id) OVERRIDE;
77 75
78 // Called internally by the audio stream when it has been closed. 76 // Called internally by the audio stream when it has been closed.
79 virtual void ReleaseOutputStream(AudioOutputStream* stream); 77 virtual void ReleaseOutputStream(AudioOutputStream* stream);
80 virtual void ReleaseInputStream(AudioInputStream* stream); 78 virtual void ReleaseInputStream(AudioInputStream* stream);
81 79
82 // Creates the output stream for the |AUDIO_PCM_LINEAR| format. The legacy 80 // Creates the output stream for the |AUDIO_PCM_LINEAR| format. The legacy
83 // name is also from |AUDIO_PCM_LINEAR|. 81 // name is also from |AUDIO_PCM_LINEAR|.
84 virtual AudioOutputStream* MakeLinearOutputStream( 82 virtual AudioOutputStream* MakeLinearOutputStream(
85 const AudioParameters& params) = 0; 83 const AudioParameters& params) = 0;
86 84
87 // Creates the output stream for the |AUDIO_PCM_LOW_LATENCY| format. 85 // Creates the output stream for the |AUDIO_PCM_LOW_LATENCY| format.
88 // |input_device_id| is used by unified IO to open the correct input device.
89 virtual AudioOutputStream* MakeLowLatencyOutputStream( 86 virtual AudioOutputStream* MakeLowLatencyOutputStream(
90 const AudioParameters& params, 87 const AudioParameters& params,
91 const std::string& device_id, 88 const std::string& device_id) = 0;
92 const std::string& input_device_id) = 0;
93 89
94 // Creates the input stream for the |AUDIO_PCM_LINEAR| format. The legacy 90 // Creates the input stream for the |AUDIO_PCM_LINEAR| format. The legacy
95 // name is also from |AUDIO_PCM_LINEAR|. 91 // name is also from |AUDIO_PCM_LINEAR|.
96 virtual AudioInputStream* MakeLinearInputStream( 92 virtual AudioInputStream* MakeLinearInputStream(
97 const AudioParameters& params, const std::string& device_id) = 0; 93 const AudioParameters& params, const std::string& device_id) = 0;
98 94
99 // Creates the input stream for the |AUDIO_PCM_LOW_LATENCY| format. 95 // Creates the input stream for the |AUDIO_PCM_LOW_LATENCY| format.
100 virtual AudioInputStream* MakeLowLatencyInputStream( 96 virtual AudioInputStream* MakeLowLatencyInputStream(
101 const AudioParameters& params, const std::string& device_id) = 0; 97 const AudioParameters& params, const std::string& device_id) = 0;
102 98
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 195
200 // Proxy for creating AudioLog objects. 196 // Proxy for creating AudioLog objects.
201 AudioLogFactory* const audio_log_factory_; 197 AudioLogFactory* const audio_log_factory_;
202 198
203 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase); 199 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase);
204 }; 200 };
205 201
206 } // namespace media 202 } // namespace media
207 203
208 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ 204 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_
OLDNEW
« no previous file with comments | « media/audio/audio_manager.h ('k') | media/audio/audio_manager_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698