| 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_output.h" | 5 #include "media/audio/android/opensles_output.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "media/audio/audio_util.h" | 8 #include "media/audio/audio_util.h" |
| 9 #include "media/audio/android/audio_manager_android.h" | 9 #include "media/audio/android/audio_manager_android.h" |
| 10 | 10 |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 for (int i = 0; i < kNumOfQueuesInBuffer; ++i) { | 300 for (int i = 0; i < kNumOfQueuesInBuffer; ++i) { |
| 301 delete [] audio_data_[i]; | 301 delete [] audio_data_[i]; |
| 302 audio_data_[i] = NULL; | 302 audio_data_[i] = NULL; |
| 303 } | 303 } |
| 304 } | 304 } |
| 305 } | 305 } |
| 306 | 306 |
| 307 void OpenSLESOutputStream::HandleError(SLresult error) { | 307 void OpenSLESOutputStream::HandleError(SLresult error) { |
| 308 DLOG(ERROR) << "OpenSLES error " << error; | 308 DLOG(ERROR) << "OpenSLES error " << error; |
| 309 if (callback_) | 309 if (callback_) |
| 310 callback_->OnError(this, error); | 310 callback_->OnError(this); |
| 311 } | 311 } |
| 312 | 312 |
| 313 } // namespace media | 313 } // namespace media |
| OLD | NEW |