| 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/logging.h" | 7 #include "base/logging.h" |
| 8 #include "media/audio/android/audio_manager_android.h" | 8 #include "media/audio/android/audio_manager_android.h" |
| 9 | 9 |
| 10 namespace media { | 10 namespace media { |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 for (int i = 0; i < kNumOfQueuesInBuffer; ++i) { | 288 for (int i = 0; i < kNumOfQueuesInBuffer; ++i) { |
| 289 delete [] audio_data_[i]; | 289 delete [] audio_data_[i]; |
| 290 audio_data_[i] = NULL; | 290 audio_data_[i] = NULL; |
| 291 } | 291 } |
| 292 } | 292 } |
| 293 } | 293 } |
| 294 | 294 |
| 295 void OpenSLESInputStream::HandleError(SLresult error) { | 295 void OpenSLESInputStream::HandleError(SLresult error) { |
| 296 DLOG(FATAL) << "OpenSLES error " << error; | 296 DLOG(FATAL) << "OpenSLES error " << error; |
| 297 if (callback_) | 297 if (callback_) |
| 298 callback_->OnError(this, error); | 298 callback_->OnError(this); |
| 299 } | 299 } |
| 300 | 300 |
| 301 } // namespace media | 301 } // namespace media |
| OLD | NEW |