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

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

Issue 2917203002: Add MuteableAudioOutputStream interface to export SetMute(). (Closed)
Patch Set: Bug fixed Created 3 years, 6 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/android/opensles_output.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 <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <unordered_set> 10 #include <unordered_set>
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 virtual AudioOutputStream* MakeLinearOutputStream( 68 virtual AudioOutputStream* MakeLinearOutputStream(
69 const AudioParameters& params, 69 const AudioParameters& params,
70 const LogCallback& log_callback) = 0; 70 const LogCallback& log_callback) = 0;
71 71
72 // Creates the output stream for the |AUDIO_PCM_LOW_LATENCY| format. 72 // Creates the output stream for the |AUDIO_PCM_LOW_LATENCY| format.
73 virtual AudioOutputStream* MakeLowLatencyOutputStream( 73 virtual AudioOutputStream* MakeLowLatencyOutputStream(
74 const AudioParameters& params, 74 const AudioParameters& params,
75 const std::string& device_id, 75 const std::string& device_id,
76 const LogCallback& log_callback) = 0; 76 const LogCallback& log_callback) = 0;
77 77
78 // Creates the output stream for the |AUDIO_BITSTREAM_XXX| format.
79 virtual AudioOutputStream* MakeBitstreamOutputStream(
80 const AudioParameters& params,
81 const std::string& device_id,
82 const LogCallback& log_callback);
83
78 // Creates the input stream for the |AUDIO_PCM_LINEAR| format. The legacy 84 // Creates the input stream for the |AUDIO_PCM_LINEAR| format. The legacy
79 // name is also from |AUDIO_PCM_LINEAR|. 85 // name is also from |AUDIO_PCM_LINEAR|.
80 virtual AudioInputStream* MakeLinearInputStream( 86 virtual AudioInputStream* MakeLinearInputStream(
81 const AudioParameters& params, 87 const AudioParameters& params,
82 const std::string& device_id, 88 const std::string& device_id,
83 const LogCallback& log_callback) = 0; 89 const LogCallback& log_callback) = 0;
84 90
85 // Creates the input stream for the |AUDIO_PCM_LOW_LATENCY| format. 91 // Creates the input stream for the |AUDIO_PCM_LOW_LATENCY| format.
86 virtual AudioInputStream* MakeLowLatencyInputStream( 92 virtual AudioInputStream* MakeLowLatencyInputStream(
87 const AudioParameters& params, 93 const AudioParameters& params,
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 203
198 // Debug recording manager. 204 // Debug recording manager.
199 std::unique_ptr<AudioDebugRecordingManager> debug_recording_manager_; 205 std::unique_ptr<AudioDebugRecordingManager> debug_recording_manager_;
200 206
201 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase); 207 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase);
202 }; 208 };
203 209
204 } // namespace media 210 } // namespace media
205 211
206 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ 212 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_
OLDNEW
« no previous file with comments | « media/audio/android/opensles_output.h ('k') | media/audio/audio_manager_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698