Chromium Code Reviews| Index: media/audio/audio_output_controller.h |
| diff --git a/media/audio/audio_output_controller.h b/media/audio/audio_output_controller.h |
| index 3dae719856508cd6a25e28dc22cd84305a35dd58..5afcc6ebccf97bbb777b8ccbc979aecda84048c3 100644 |
| --- a/media/audio/audio_output_controller.h |
| +++ b/media/audio/audio_output_controller.h |
| @@ -63,6 +63,10 @@ class MessageLoop; |
| namespace media { |
| +// TODO(miu): STUB |
| +class DivertedAudioOutputStream : public AudioOutputStream { |
| +}; |
| + |
| class MEDIA_EXPORT AudioOutputController |
| : public base::RefCountedThreadSafe<AudioOutputController>, |
| public AudioOutputStream::AudioSourceCallback, |
| @@ -158,6 +162,12 @@ class MEDIA_EXPORT AudioOutputController |
| // to being called. |
| virtual void OnDeviceChange() OVERRIDE; |
| + // Creates a DivertedAudioOutputStream and diverts audio data to it, away from |
| + // the existing AudioOutputStream. The caller owns the returned object. When |
| + // the object's destructor is invoked (on the IO thread), the diversion |
| + // reverts. |
| + DivertedAudioOutputStream* Divert(); |
|
Alpha Left Google
2012/11/20 21:49:43
I think this class should be DAOS.
miu
2012/11/21 08:27:48
Yep. The more I think about it, the more we shoul
|
| + |
| protected: |
| // Internal state of the source. |
| enum State { |