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 #include "media/audio/android/opensles_input.h" | 5 #include "media/audio/android/opensles_input.h" |
6 | 6 |
7 #include "base/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
8 #include "base/logging.h" | 8 #include "base/logging.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" |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 | 178 |
179 void OpenSLESInputStream::SetAutomaticGainControl(bool enabled) { | 179 void OpenSLESInputStream::SetAutomaticGainControl(bool enabled) { |
180 NOTIMPLEMENTED(); | 180 NOTIMPLEMENTED(); |
181 } | 181 } |
182 | 182 |
183 bool OpenSLESInputStream::GetAutomaticGainControl() { | 183 bool OpenSLESInputStream::GetAutomaticGainControl() { |
184 NOTIMPLEMENTED(); | 184 NOTIMPLEMENTED(); |
185 return false; | 185 return false; |
186 } | 186 } |
187 | 187 |
| 188 bool OpenSLESInputStream::IsMuted() { |
| 189 NOTIMPLEMENTED(); |
| 190 return false; |
| 191 } |
| 192 |
188 bool OpenSLESInputStream::CreateRecorder() { | 193 bool OpenSLESInputStream::CreateRecorder() { |
189 DCHECK(thread_checker_.CalledOnValidThread()); | 194 DCHECK(thread_checker_.CalledOnValidThread()); |
190 DCHECK(!engine_object_.Get()); | 195 DCHECK(!engine_object_.Get()); |
191 DCHECK(!recorder_object_.Get()); | 196 DCHECK(!recorder_object_.Get()); |
192 DCHECK(!recorder_); | 197 DCHECK(!recorder_); |
193 DCHECK(!simple_buffer_queue_); | 198 DCHECK(!simple_buffer_queue_); |
194 | 199 |
195 // Initializes the engine object with specific option. After working with the | 200 // Initializes the engine object with specific option. After working with the |
196 // object, we need to free the object and its resources. | 201 // object, we need to free the object and its resources. |
197 SLEngineOption option[] = { | 202 SLEngineOption option[] = { |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 } | 340 } |
336 } | 341 } |
337 | 342 |
338 void OpenSLESInputStream::HandleError(SLresult error) { | 343 void OpenSLESInputStream::HandleError(SLresult error) { |
339 DLOG(ERROR) << "OpenSLES Input error " << error; | 344 DLOG(ERROR) << "OpenSLES Input error " << error; |
340 if (callback_) | 345 if (callback_) |
341 callback_->OnError(this); | 346 callback_->OnError(this); |
342 } | 347 } |
343 | 348 |
344 } // namespace media | 349 } // namespace media |
OLD | NEW |