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_CRAS_CRAS_INPUT_H_ | 5 #ifndef MEDIA_AUDIO_CRAS_CRAS_INPUT_H_ |
6 #define MEDIA_AUDIO_CRAS_CRAS_INPUT_H_ | 6 #define MEDIA_AUDIO_CRAS_CRAS_INPUT_H_ |
7 | 7 |
8 #include <cras_client.h> | 8 #include <cras_client.h> |
9 #include <stddef.h> | 9 #include <stddef.h> |
10 #include <stdint.h> | 10 #include <stdint.h> |
11 | 11 |
| 12 #include <memory> |
12 #include <string> | 13 #include <string> |
13 | 14 |
14 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
15 #include "base/macros.h" | 16 #include "base/macros.h" |
16 #include "media/audio/agc_audio_stream.h" | 17 #include "media/audio/agc_audio_stream.h" |
17 #include "media/audio/audio_io.h" | 18 #include "media/audio/audio_io.h" |
18 #include "media/base/audio_parameters.h" | 19 #include "media/base/audio_parameters.h" |
19 #include "media/base/media_export.h" | 20 #include "media/base/media_export.h" |
20 | 21 |
21 namespace media { | 22 namespace media { |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 104 |
104 // Direction of the stream. | 105 // Direction of the stream. |
105 const CRAS_STREAM_DIRECTION stream_direction_; | 106 const CRAS_STREAM_DIRECTION stream_direction_; |
106 | 107 |
107 // Index of the CRAS device to stream input from. | 108 // Index of the CRAS device to stream input from. |
108 int pin_device_; | 109 int pin_device_; |
109 | 110 |
110 // True if the stream is a system-wide loopback stream. | 111 // True if the stream is a system-wide loopback stream. |
111 bool is_loopback_; | 112 bool is_loopback_; |
112 | 113 |
113 scoped_ptr<AudioBus> audio_bus_; | 114 std::unique_ptr<AudioBus> audio_bus_; |
114 | 115 |
115 DISALLOW_COPY_AND_ASSIGN(CrasInputStream); | 116 DISALLOW_COPY_AND_ASSIGN(CrasInputStream); |
116 }; | 117 }; |
117 | 118 |
118 } // namespace media | 119 } // namespace media |
119 | 120 |
120 #endif // MEDIA_AUDIO_CRAS_CRAS_INPUT_H_ | 121 #endif // MEDIA_AUDIO_CRAS_CRAS_INPUT_H_ |
OLD | NEW |