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_ANDROID_OPENSLES_INPUT_H_ | 5 #ifndef MEDIA_AUDIO_ANDROID_OPENSLES_INPUT_H_ |
6 #define MEDIA_AUDIO_ANDROID_OPENSLES_INPUT_H_ | 6 #define MEDIA_AUDIO_ANDROID_OPENSLES_INPUT_H_ |
7 | 7 |
| 8 #include <SLES/OpenSLES.h> |
| 9 #include <SLES/OpenSLES_Android.h> |
| 10 |
8 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
9 #include "media/audio/audio_io.h" | 12 #include "media/audio/audio_io.h" |
10 #include "media/audio/audio_parameters.h" | 13 #include "media/audio/audio_parameters.h" |
11 #include "media/audio/android/opensles_util.h" | 14 #include "media/audio/android/opensles_util.h" |
12 #include <SLES/OpenSLES_Android.h> | |
13 | 15 |
14 namespace media { | 16 namespace media { |
15 | 17 |
16 class AudioManagerAndroid; | 18 class AudioManagerAndroid; |
17 | 19 |
18 // Implements PCM audio input support for Android using the OpenSLES API. | 20 // Implements PCM audio input support for Android using the OpenSLES API. |
19 class OpenSLESInputStream : public AudioInputStream { | 21 class OpenSLESInputStream : public AudioInputStream { |
20 public: | 22 public: |
21 static const int kNumOfQueuesInBuffer = 2; | 23 static const int kNumOfQueuesInBuffer = 2; |
22 | 24 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 int buffer_size_bytes_; | 79 int buffer_size_bytes_; |
78 | 80 |
79 bool started_; | 81 bool started_; |
80 | 82 |
81 DISALLOW_COPY_AND_ASSIGN(OpenSLESInputStream); | 83 DISALLOW_COPY_AND_ASSIGN(OpenSLESInputStream); |
82 }; | 84 }; |
83 | 85 |
84 } // namespace media | 86 } // namespace media |
85 | 87 |
86 #endif // MEDIA_AUDIO_ANDROID_OPENSLES_INPUT_H_ | 88 #endif // MEDIA_AUDIO_ANDROID_OPENSLES_INPUT_H_ |
OLD | NEW |