| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/audio_manager_base.h" | 5 #include "media/audio/audio_manager_base.h" |
| 6 #include "media/audio/audio_output_dispatcher.h" | 6 #include "media/audio/audio_output_dispatcher.h" |
| 7 #include "media/audio/audio_output_proxy.h" | 7 #include "media/audio/audio_output_proxy.h" |
| 8 | 8 |
| 9 namespace { | 9 static const int kStreamCloseDelayMs = 5000; |
| 10 const int kStreamCloseDelayMs = 5000; | |
| 11 } // namespace | |
| 12 | 10 |
| 13 AudioManagerBase::AudioManagerBase() | 11 AudioManagerBase::AudioManagerBase() |
| 14 : audio_thread_("AudioThread"), | 12 : audio_thread_("AudioThread"), |
| 15 initialized_(false) { | 13 initialized_(false) { |
| 16 } | 14 } |
| 17 | 15 |
| 18 AudioManagerBase::~AudioManagerBase() { | 16 AudioManagerBase::~AudioManagerBase() { |
| 19 DCHECK(!audio_thread_.IsRunning()); | 17 DCHECK(!audio_thread_.IsRunning()); |
| 20 } | 18 } |
| 21 | 19 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 51 | 49 |
| 52 return new AudioOutputProxy(dispatcher); | 50 return new AudioOutputProxy(dispatcher); |
| 53 } | 51 } |
| 54 | 52 |
| 55 bool AudioManagerBase::CanShowAudioInputSettings() { | 53 bool AudioManagerBase::CanShowAudioInputSettings() { |
| 56 return false; | 54 return false; |
| 57 } | 55 } |
| 58 | 56 |
| 59 void AudioManagerBase::ShowAudioInputSettings() { | 57 void AudioManagerBase::ShowAudioInputSettings() { |
| 60 } | 58 } |
| OLD | NEW |