| 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 <stdint.h> | 8 #include <stdint.h> | 
| 9 | 9 | 
| 10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" | 
| 11 #include "base/macros.h" | 11 #include "base/macros.h" | 
| 12 #include "base/threading/thread_checker.h" | 12 #include "base/threading/thread_checker.h" | 
| 13 #include "media/audio/audio_io.h" | 13 #include "media/audio/audio_io.h" | 
| 14 #include "media/audio/audio_parameters.h" | 14 #include "media/base/audio_parameters.h" | 
| 15 | 15 | 
| 16 namespace media { | 16 namespace media { | 
| 17 | 17 | 
| 18 class AudioBus; | 18 class AudioBus; | 
| 19 class AudioManagerAndroid; | 19 class AudioManagerAndroid; | 
| 20 | 20 | 
| 21 // Implements PCM audio input support for Android using the Java AudioRecord | 21 // Implements PCM audio input support for Android using the Java AudioRecord | 
| 22 // interface. Most of the work is done by its Java counterpart in | 22 // interface. Most of the work is done by its Java counterpart in | 
| 23 // AudioRecordInput.java. This class is created and lives on the Audio Manager | 23 // AudioRecordInput.java. This class is created and lives on the Audio Manager | 
| 24 // thread but recorded audio buffers are delivered on a thread managed by | 24 // thread but recorded audio buffers are delivered on a thread managed by | 
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 77 | 77 | 
| 78   scoped_ptr<media::AudioBus> audio_bus_; | 78   scoped_ptr<media::AudioBus> audio_bus_; | 
| 79   int bytes_per_sample_; | 79   int bytes_per_sample_; | 
| 80 | 80 | 
| 81   DISALLOW_COPY_AND_ASSIGN(AudioRecordInputStream); | 81   DISALLOW_COPY_AND_ASSIGN(AudioRecordInputStream); | 
| 82 }; | 82 }; | 
| 83 | 83 | 
| 84 }  // namespace media | 84 }  // namespace media | 
| 85 | 85 | 
| 86 #endif  // MEDIA_AUDIO_ANDROID_AUDIO_RECORD_INPUT_H_ | 86 #endif  // MEDIA_AUDIO_ANDROID_AUDIO_RECORD_INPUT_H_ | 
| OLD | NEW | 
|---|