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

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

Issue 3192017: Revert 57254 - Share one thread between all AudioOutputControllers instead of... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 3 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
« no previous file with comments | « chrome/renderer/media/audio_renderer_impl.h ('k') | media/audio/audio_io.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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_INPUT_CONTROLLER_H_ 5 #ifndef MEDIA_AUDIO_AUDIO_INPUT_CONTROLLER_H_
6 #define MEDIA_AUDIO_AUDIO_INPUT_CONTROLLER_H_ 6 #define MEDIA_AUDIO_AUDIO_INPUT_CONTROLLER_H_
7 7
8 #include "base/lock.h" 8 #include "base/lock.h"
9 #include "base/ref_counted.h" 9 #include "base/ref_counted.h"
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
11 #include "base/thread.h" 11 #include "base/thread.h"
12 #include "media/audio/audio_io.h" 12 #include "media/audio/audio_io.h"
13 #include "media/audio/audio_manager.h"
14 13
15 // An AudioInputController controls an AudioInputStream and records data 14 // An AudioInputController controls an AudioInputStream and records data
16 // from this input stream. It has an important function that it executes 15 // from this input stream. It has an important function that it executes
17 // audio operations like record, pause, stop, etc. on a separate thread. 16 // audio operations like record, pause, stop, etc. on a separate thread.
18 // 17 //
19 // All the public methods of AudioInputController are non-blocking except 18 // All the public methods of AudioInputController are non-blocking except
20 // close, the actual operations are performed on the audio input controller 19 // close, the actual operations are performed on the audio input controller
21 // thread. 20 // thread.
22 // 21 //
23 // Here is a state diagram for the AudioInputController: 22 // Here is a state diagram for the AudioInputController:
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 base::Thread thread_; 136 base::Thread thread_;
138 137
139 static Factory* factory_; 138 static Factory* factory_;
140 139
141 DISALLOW_COPY_AND_ASSIGN(AudioInputController); 140 DISALLOW_COPY_AND_ASSIGN(AudioInputController);
142 }; 141 };
143 142
144 } // namespace media 143 } // namespace media
145 144
146 #endif // MEDIA_AUDIO_AUDIO_INPUT_CONTROLLER_H_ 145 #endif // MEDIA_AUDIO_AUDIO_INPUT_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/renderer/media/audio_renderer_impl.h ('k') | media/audio/audio_io.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698