OLD | NEW |
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 // 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 11 matching lines...) Expand all Loading... |
22 #define MEDIA_AUDIO_LINUX_ALSA_OUTPUT_H_ | 22 #define MEDIA_AUDIO_LINUX_ALSA_OUTPUT_H_ |
23 | 23 |
24 #include <alsa/asoundlib.h> | 24 #include <alsa/asoundlib.h> |
25 | 25 |
26 #include <string> | 26 #include <string> |
27 | 27 |
28 #include "base/compiler_specific.h" | 28 #include "base/compiler_specific.h" |
29 #include "base/gtest_prod_util.h" | 29 #include "base/gtest_prod_util.h" |
30 #include "base/memory/scoped_ptr.h" | 30 #include "base/memory/scoped_ptr.h" |
31 #include "base/memory/weak_ptr.h" | 31 #include "base/memory/weak_ptr.h" |
32 #include "base/time.h" | 32 #include "base/time/time.h" |
33 #include "media/audio/audio_io.h" | 33 #include "media/audio/audio_io.h" |
34 #include "media/audio/audio_parameters.h" | 34 #include "media/audio/audio_parameters.h" |
35 | 35 |
36 namespace base { | 36 namespace base { |
37 class MessageLoop; | 37 class MessageLoop; |
38 } | 38 } |
39 | 39 |
40 namespace media { | 40 namespace media { |
41 | 41 |
42 class AlsaWrapper; | 42 class AlsaWrapper; |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 | 219 |
220 DISALLOW_COPY_AND_ASSIGN(AlsaPcmOutputStream); | 220 DISALLOW_COPY_AND_ASSIGN(AlsaPcmOutputStream); |
221 }; | 221 }; |
222 | 222 |
223 MEDIA_EXPORT std::ostream& operator<<(std::ostream& os, | 223 MEDIA_EXPORT std::ostream& operator<<(std::ostream& os, |
224 AlsaPcmOutputStream::InternalState); | 224 AlsaPcmOutputStream::InternalState); |
225 | 225 |
226 }; // namespace media | 226 }; // namespace media |
227 | 227 |
228 #endif // MEDIA_AUDIO_LINUX_ALSA_OUTPUT_H_ | 228 #endif // MEDIA_AUDIO_LINUX_ALSA_OUTPUT_H_ |
OLD | NEW |