| OLD | NEW |
| 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 Loading... |
| 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" | |
| 40 #include "media/audio/audio_io.h" | 39 #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 Loading... |
| 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_ |
| OLD | NEW |