| 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 #include "media/audio/android/audio_record_input.h" | 5 #include "media/audio/android/audio_record_input.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "jni/AudioRecordInput_jni.h" | 8 #include "jni/AudioRecordInput_jni.h" |
| 9 #include "media/audio/android/audio_manager_android.h" | 9 #include "media/audio/android/audio_manager_android.h" |
| 10 #include "media/base/audio_bus.h" | 10 #include "media/base/audio_bus.h" |
| 11 | 11 |
| 12 using base::android::JavaParamRef; |
| 13 |
| 12 namespace media { | 14 namespace media { |
| 13 | 15 |
| 14 AudioRecordInputStream::AudioRecordInputStream( | 16 AudioRecordInputStream::AudioRecordInputStream( |
| 15 AudioManagerAndroid* audio_manager, | 17 AudioManagerAndroid* audio_manager, |
| 16 const AudioParameters& params) | 18 const AudioParameters& params) |
| 17 : audio_manager_(audio_manager), | 19 : audio_manager_(audio_manager), |
| 18 callback_(NULL), | 20 callback_(NULL), |
| 19 direct_buffer_address_(NULL), | 21 direct_buffer_address_(NULL), |
| 20 audio_bus_(media::AudioBus::Create(params)), | 22 audio_bus_(media::AudioBus::Create(params)), |
| 21 bytes_per_sample_(params.bits_per_sample() / 8) { | 23 bytes_per_sample_(params.bits_per_sample() / 8) { |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 NOTIMPLEMENTED(); | 140 NOTIMPLEMENTED(); |
| 139 return false; | 141 return false; |
| 140 } | 142 } |
| 141 | 143 |
| 142 bool AudioRecordInputStream::IsMuted() { | 144 bool AudioRecordInputStream::IsMuted() { |
| 143 NOTIMPLEMENTED(); | 145 NOTIMPLEMENTED(); |
| 144 return false; | 146 return false; |
| 145 } | 147 } |
| 146 | 148 |
| 147 } // namespace media | 149 } // namespace media |
| OLD | NEW |