| 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/mac/aggregate_device_manager.h" | 5 #include "media/audio/mac/aggregate_device_manager.h" |
| 6 | 6 |
| 7 #include <CoreAudio/AudioHardware.h> | 7 #include <CoreAudio/AudioHardware.h> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/mac/mac_logging.h" | 10 #include "base/mac/mac_logging.h" |
| 11 #include "base/mac/scoped_cftyperef.h" | 11 #include "base/mac/scoped_cftyperef.h" |
| 12 #include "media/audio/audio_parameters.h" | 12 #include "media/audio/audio_parameters.h" |
| 13 #include "media/audio/mac/audio_manager_mac.h" | 13 #include "media/audio/mac/audio_manager_mac.h" |
| 14 | 14 |
| 15 using base::mac::ScopedCFTypeRef; | 15 using base::ScopedCFTypeRef; |
| 16 | 16 |
| 17 namespace media { | 17 namespace media { |
| 18 | 18 |
| 19 AggregateDeviceManager::AggregateDeviceManager() | 19 AggregateDeviceManager::AggregateDeviceManager() |
| 20 : plugin_id_(kAudioObjectUnknown), | 20 : plugin_id_(kAudioObjectUnknown), |
| 21 input_device_(kAudioDeviceUnknown), | 21 input_device_(kAudioDeviceUnknown), |
| 22 output_device_(kAudioDeviceUnknown), | 22 output_device_(kAudioDeviceUnknown), |
| 23 aggregate_device_(kAudioObjectUnknown) { | 23 aggregate_device_(kAudioObjectUnknown) { |
| 24 } | 24 } |
| 25 | 25 |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 &aggregate_device_); | 362 &aggregate_device_); |
| 363 if (result != noErr) { | 363 if (result != noErr) { |
| 364 DLOG(ERROR) << "Error destroying aggregate audio device!"; | 364 DLOG(ERROR) << "Error destroying aggregate audio device!"; |
| 365 return; | 365 return; |
| 366 } | 366 } |
| 367 | 367 |
| 368 aggregate_device_ = kAudioObjectUnknown; | 368 aggregate_device_ = kAudioObjectUnknown; |
| 369 } | 369 } |
| 370 | 370 |
| 371 } // namespace media | 371 } // namespace media |
| OLD | NEW |