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 #ifndef MEDIA_AUDIO_LINUX_CRAS_INPUT_H_ | 5 #ifndef MEDIA_AUDIO_LINUX_CRAS_INPUT_H_ |
6 #define MEDIA_AUDIO_LINUX_CRAS_INPUT_H_ | 6 #define MEDIA_AUDIO_LINUX_CRAS_INPUT_H_ |
7 | 7 |
8 #include <cras_client.h> | 8 #include <cras_client.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "base/time.h" | |
16 #include "media/audio/audio_input_stream_impl.h" | 15 #include "media/audio/audio_input_stream_impl.h" |
17 #include "media/audio/audio_io.h" | 16 #include "media/audio/audio_io.h" |
18 #include "media/audio/audio_parameters.h" | 17 #include "media/audio/audio_parameters.h" |
19 | 18 |
20 namespace media { | 19 namespace media { |
21 | 20 |
22 class AudioManagerLinux; | 21 class AudioManagerLinux; |
23 | 22 |
24 // Provides an input stream for audio capture based on CRAS, the ChromeOS Audio | 23 // Provides an input stream for audio capture based on CRAS, the ChromeOS Audio |
25 // Server. This object is not thread safe and all methods should be invoked in | 24 // Server. This object is not thread safe and all methods should be invoked in |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 | 95 |
97 // ID of the playing stream. | 96 // ID of the playing stream. |
98 cras_stream_id_t stream_id_; | 97 cras_stream_id_t stream_id_; |
99 | 98 |
100 DISALLOW_COPY_AND_ASSIGN(CrasInputStream); | 99 DISALLOW_COPY_AND_ASSIGN(CrasInputStream); |
101 }; | 100 }; |
102 | 101 |
103 } // namespace media | 102 } // namespace media |
104 | 103 |
105 #endif // MEDIA_AUDIO_LINUX_ALSA_INPUT_H_ | 104 #endif // MEDIA_AUDIO_LINUX_ALSA_INPUT_H_ |
OLD | NEW |