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

Side by Side Diff: media/audio/linux/alsa_output.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, 4 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 | « media/audio/fake_audio_input_stream_unittest.cc ('k') | media/audio/linux/alsa_output.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) 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 // Creates an output stream based on the ALSA PCM interface. 5 // Creates an output stream based on the ALSA PCM interface.
6 // 6 //
7 // On device write failure, the stream will move itself to an invalid state. 7 // On device write failure, the stream will move itself to an invalid state.
8 // No more data will be pulled from the data source, or written to the device. 8 // No more data will be pulled from the data source, or written to the device.
9 // All calls to public API functions will either no-op themselves, or return an 9 // All calls to public API functions will either no-op themselves, or return an
10 // error if possible. Specifically, If the stream is in an error state, Open() 10 // error if possible. Specifically, If the stream is in an error state, Open()
(...skipping 18 matching lines...) Expand all
29 #define MEDIA_AUDIO_LINUX_ALSA_OUTPUT_H_ 29 #define MEDIA_AUDIO_LINUX_ALSA_OUTPUT_H_
30 30
31 #include <alsa/asoundlib.h> 31 #include <alsa/asoundlib.h>
32 32
33 #include <string> 33 #include <string>
34 34
35 #include "base/gtest_prod_util.h" 35 #include "base/gtest_prod_util.h"
36 #include "base/lock.h" 36 #include "base/lock.h"
37 #include "base/ref_counted.h" 37 #include "base/ref_counted.h"
38 #include "base/scoped_ptr.h" 38 #include "base/scoped_ptr.h"
39 #include "base/thread.h"
39 #include "media/audio/audio_io.h" 40 #include "media/audio/audio_io.h"
40 #include "media/audio/audio_manager_base.h"
41 41
42 namespace media { 42 namespace media {
43 class SeekableBuffer; 43 class SeekableBuffer;
44 }; // namespace media 44 }; // namespace media
45 45
46 class AlsaWrapper; 46 class AlsaWrapper;
47 class AudioManagerLinux; 47 class AudioManagerLinux;
48 48
49 class AlsaPcmOutputStream : 49 class AlsaPcmOutputStream :
50 public AudioOutputStream, 50 public AudioOutputStream,
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 MessageLoop* client_thread_loop_; 245 MessageLoop* client_thread_loop_;
246 246
247 // The message loop responsible for querying the data source, and writing to 247 // The message loop responsible for querying the data source, and writing to
248 // the output device. 248 // the output device.
249 MessageLoop* message_loop_; 249 MessageLoop* message_loop_;
250 250
251 DISALLOW_COPY_AND_ASSIGN(AlsaPcmOutputStream); 251 DISALLOW_COPY_AND_ASSIGN(AlsaPcmOutputStream);
252 }; 252 };
253 253
254 #endif // MEDIA_AUDIO_LINUX_ALSA_OUTPUT_H_ 254 #endif // MEDIA_AUDIO_LINUX_ALSA_OUTPUT_H_
OLDNEW
« no previous file with comments | « media/audio/fake_audio_input_stream_unittest.cc ('k') | media/audio/linux/alsa_output.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698