| 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 #ifndef MEDIA_AUDIO_ANDROID_AUDIO_RECORD_INPUT_H_ | 5 #ifndef MEDIA_AUDIO_ANDROID_AUDIO_RECORD_INPUT_H_ |
| 6 #define MEDIA_AUDIO_ANDROID_AUDIO_RECORD_INPUT_H_ | 6 #define MEDIA_AUDIO_ANDROID_AUDIO_RECORD_INPUT_H_ |
| 7 | 7 |
| 8 #include "base/android/jni_android.h" | 8 #include "base/android/jni_android.h" |
| 9 #include "base/macros.h" |
| 9 #include "base/threading/thread_checker.h" | 10 #include "base/threading/thread_checker.h" |
| 10 #include "media/audio/audio_io.h" | 11 #include "media/audio/audio_io.h" |
| 11 #include "media/audio/audio_parameters.h" | 12 #include "media/audio/audio_parameters.h" |
| 12 | 13 |
| 13 namespace media { | 14 namespace media { |
| 14 | 15 |
| 15 class AudioBus; | 16 class AudioBus; |
| 16 class AudioManagerAndroid; | 17 class AudioManagerAndroid; |
| 17 | 18 |
| 18 // Implements PCM audio input support for Android using the Java AudioRecord | 19 // Implements PCM audio input support for Android using the Java AudioRecord |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 75 |
| 75 scoped_ptr<media::AudioBus> audio_bus_; | 76 scoped_ptr<media::AudioBus> audio_bus_; |
| 76 int bytes_per_sample_; | 77 int bytes_per_sample_; |
| 77 | 78 |
| 78 DISALLOW_COPY_AND_ASSIGN(AudioRecordInputStream); | 79 DISALLOW_COPY_AND_ASSIGN(AudioRecordInputStream); |
| 79 }; | 80 }; |
| 80 | 81 |
| 81 } // namespace media | 82 } // namespace media |
| 82 | 83 |
| 83 #endif // MEDIA_AUDIO_ANDROID_AUDIO_RECORD_INPUT_H_ | 84 #endif // MEDIA_AUDIO_ANDROID_AUDIO_RECORD_INPUT_H_ |
| OLD | NEW |