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

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

Issue 11416350: Tab Audio Mirroring: WebContentsAudioInputStream is a new implementation which represents the lifet… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Replace RunAfterClosed() scheme with 'after close callback' passed to ctor. Created 7 years, 11 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 | Annotate | Revision Log
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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 virtual AudioOutputStream* MakeAudioOutputStreamProxy( 58 virtual AudioOutputStream* MakeAudioOutputStreamProxy(
59 const AudioParameters& params) OVERRIDE; 59 const AudioParameters& params) OVERRIDE;
60 60
61 virtual bool IsRecordingInProcess() OVERRIDE; 61 virtual bool IsRecordingInProcess() OVERRIDE;
62 62
63 // Called internally by the audio stream when it has been closed. 63 // Called internally by the audio stream when it has been closed.
64 virtual void ReleaseOutputStream(AudioOutputStream* stream); 64 virtual void ReleaseOutputStream(AudioOutputStream* stream);
65 virtual void ReleaseInputStream(AudioInputStream* stream); 65 virtual void ReleaseInputStream(AudioInputStream* stream);
66 66
67 // Called internally by the browser-wide VirtualAudioInputStream after it has
68 // been closed. Notifies all AudioDeviceListeners to re-create output
69 // streams and then deletes |stream|.
70 virtual void ReleaseVirtualInputStream(VirtualAudioInputStream* stream);
71
67 void IncreaseActiveInputStreamCount(); 72 void IncreaseActiveInputStreamCount();
68 void DecreaseActiveInputStreamCount(); 73 void DecreaseActiveInputStreamCount();
69 74
70 // Creates the output stream for the |AUDIO_PCM_LINEAR| format. The legacy 75 // Creates the output stream for the |AUDIO_PCM_LINEAR| format. The legacy
71 // name is also from |AUDIO_PCM_LINEAR|. 76 // name is also from |AUDIO_PCM_LINEAR|.
72 virtual AudioOutputStream* MakeLinearOutputStream( 77 virtual AudioOutputStream* MakeLinearOutputStream(
73 const AudioParameters& params) = 0; 78 const AudioParameters& params) = 0;
74 79
75 // Creates the output stream for the |AUDIO_PCM_LOW_LATENCY| format. 80 // Creates the output stream for the |AUDIO_PCM_LOW_LATENCY| format.
76 virtual AudioOutputStream* MakeLowLatencyOutputStream( 81 virtual AudioOutputStream* MakeLowLatencyOutputStream(
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // create all audio output streams as virtual streams so as to redirect audio 169 // create all audio output streams as virtual streams so as to redirect audio
165 // data to this virtual input stream. 170 // data to this virtual input stream.
166 VirtualAudioInputStream* virtual_audio_input_stream_; 171 VirtualAudioInputStream* virtual_audio_input_stream_;
167 172
168 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase); 173 DISALLOW_COPY_AND_ASSIGN(AudioManagerBase);
169 }; 174 };
170 175
171 } // namespace media 176 } // namespace media
172 177
173 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_ 178 #endif // MEDIA_AUDIO_AUDIO_MANAGER_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698