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_controller.h" | 5 #include "media/audio/audio_output_controller.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/synchronization/waitable_event.h" | 10 #include "base/synchronization/waitable_event.h" |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 case kCreated: | 385 case kCreated: |
386 case kPausedWhenStarting: | 386 case kPausedWhenStarting: |
387 case kPaused: | 387 case kPaused: |
388 // From the outside these three states are equivalent. | 388 // From the outside these three states are equivalent. |
389 return; | 389 return; |
390 default: | 390 default: |
391 NOTREACHED() << "Invalid original state."; | 391 NOTREACHED() << "Invalid original state."; |
392 } | 392 } |
393 } | 393 } |
394 | 394 |
| 395 DivertedAudioOutputStream* AudioOutputController::Divert() { |
| 396 DVLOG(1) << "STUB: AudioOutputController@" << this << "->Divert()"; |
| 397 // TODO: Do something similar to OnDeviceChange() to stop |stream_| and create |
| 398 // the "diverted" stream. The original stream's state is restored upon |
| 399 // destruction of the diverted stream object. |
| 400 return NULL; |
| 401 } |
| 402 |
| 403 |
395 } // namespace media | 404 } // namespace media |
OLD | NEW |