OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 15 matching lines...) Expand all Loading... |
26 | 26 |
27 #include <string> | 27 #include <string> |
28 | 28 |
29 #include "base/compiler_specific.h" | 29 #include "base/compiler_specific.h" |
30 #include "base/gtest_prod_util.h" | 30 #include "base/gtest_prod_util.h" |
31 #include "base/macros.h" | 31 #include "base/macros.h" |
32 #include "base/memory/scoped_ptr.h" | 32 #include "base/memory/scoped_ptr.h" |
33 #include "base/memory/weak_ptr.h" | 33 #include "base/memory/weak_ptr.h" |
34 #include "base/time/time.h" | 34 #include "base/time/time.h" |
35 #include "media/audio/audio_io.h" | 35 #include "media/audio/audio_io.h" |
36 #include "media/audio/audio_parameters.h" | 36 #include "media/base/audio_parameters.h" |
37 | 37 |
38 namespace base { | 38 namespace base { |
39 class MessageLoop; | 39 class MessageLoop; |
40 } | 40 } |
41 | 41 |
42 namespace media { | 42 namespace media { |
43 | 43 |
44 class AlsaWrapper; | 44 class AlsaWrapper; |
45 class AudioManagerBase; | 45 class AudioManagerBase; |
46 class ChannelMixer; | 46 class ChannelMixer; |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 | 222 |
223 DISALLOW_COPY_AND_ASSIGN(AlsaPcmOutputStream); | 223 DISALLOW_COPY_AND_ASSIGN(AlsaPcmOutputStream); |
224 }; | 224 }; |
225 | 225 |
226 MEDIA_EXPORT std::ostream& operator<<(std::ostream& os, | 226 MEDIA_EXPORT std::ostream& operator<<(std::ostream& os, |
227 AlsaPcmOutputStream::InternalState); | 227 AlsaPcmOutputStream::InternalState); |
228 | 228 |
229 }; // namespace media | 229 }; // namespace media |
230 | 230 |
231 #endif // MEDIA_AUDIO_ALSA_ALSA_OUTPUT_H_ | 231 #endif // MEDIA_AUDIO_ALSA_ALSA_OUTPUT_H_ |
OLD | NEW |