| 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/audio_manager_android.h" | 5 #include "media/audio/android/audio_manager_android.h" |
| 6 | 6 |
| 7 #include "base/android/build_info.h" | 7 #include "base/android/build_info.h" |
| 8 #include "base/android/context_utils.h" |
| 8 #include "base/android/jni_array.h" | 9 #include "base/android/jni_array.h" |
| 9 #include "base/android/jni_string.h" | 10 #include "base/android/jni_string.h" |
| 10 #include "base/android/scoped_java_ref.h" | 11 #include "base/android/scoped_java_ref.h" |
| 11 #include "base/bind.h" | 12 #include "base/bind.h" |
| 12 #include "base/logging.h" | 13 #include "base/logging.h" |
| 13 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
| 14 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
| 15 #include "jni/AudioManagerAndroid_jni.h" | 16 #include "jni/AudioManagerAndroid_jni.h" |
| 16 #include "media/audio/android/audio_record_input.h" | 17 #include "media/audio/android/audio_record_input.h" |
| 17 #include "media/audio/android/opensles_input.h" | 18 #include "media/audio/android/opensles_input.h" |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 output_volume_override_ = volume; | 407 output_volume_override_ = volume; |
| 407 | 408 |
| 408 DCHECK(GetTaskRunner()->BelongsToCurrentThread()); | 409 DCHECK(GetTaskRunner()->BelongsToCurrentThread()); |
| 409 for (OutputStreams::iterator it = streams_.begin(); | 410 for (OutputStreams::iterator it = streams_.begin(); |
| 410 it != streams_.end(); ++it) { | 411 it != streams_.end(); ++it) { |
| 411 (*it)->SetVolume(volume); | 412 (*it)->SetVolume(volume); |
| 412 } | 413 } |
| 413 } | 414 } |
| 414 | 415 |
| 415 } // namespace media | 416 } // namespace media |
| OLD | NEW |