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/audio_output_proxy.h" | 5 #include "media/audio/audio_output_proxy.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "media/audio/audio_manager.h" | 9 #include "media/audio/audio_manager.h" |
10 #include "media/audio/audio_output_dispatcher.h" | 10 #include "media/audio/audio_output_dispatcher.h" |
11 | 11 |
12 namespace media { | 12 namespace media { |
13 | 13 |
14 AudioOutputProxy::AudioOutputProxy(AudioOutputDispatcher* dispatcher) | 14 AudioOutputProxy::AudioOutputProxy(AudioOutputDispatcher* dispatcher) |
15 : dispatcher_(dispatcher), | 15 : dispatcher_(dispatcher), |
16 state_(kCreated), | 16 state_(kCreated), |
17 volume_(1.0) { | 17 volume_(1.0) { |
18 } | 18 } |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 state_ = kClosed; | 84 state_ = kClosed; |
85 | 85 |
86 // Delete the object now like is done in the Close() implementation of | 86 // Delete the object now like is done in the Close() implementation of |
87 // physical stream objects. If we delete the object via DeleteSoon, we | 87 // physical stream objects. If we delete the object via DeleteSoon, we |
88 // unnecessarily complicate the Shutdown procedure of the | 88 // unnecessarily complicate the Shutdown procedure of the |
89 // dispatcher+audio manager. | 89 // dispatcher+audio manager. |
90 delete this; | 90 delete this; |
91 } | 91 } |
92 | 92 |
93 } // namespace media | 93 } // namespace media |
OLD | NEW |