| Index: content/renderer/media/audio_device.h
|
| diff --git a/content/renderer/media/audio_device.h b/content/renderer/media/audio_device.h
|
| index 9410ce71f1055f715671bca52ec16555cacd964d..74b28d33d8558d2a8ed97f03f7ff0d5ecc6a23d3 100644
|
| --- a/content/renderer/media/audio_device.h
|
| +++ b/content/renderer/media/audio_device.h
|
| @@ -23,7 +23,7 @@
|
| //
|
| // Task [IO thread] IPC [IO thread]
|
| //
|
| -// Start -> InitializeOnIOThread ------> AudioHostMsg_CreateStream -------->
|
| +// Start -> CreateStreamOnIOThread -----> AudioHostMsg_CreateStream ------>
|
| // <- OnStreamCreated <- AudioMsg_NotifyStreamCreated <-
|
| // ---> PlayOnIOThread -----------> AudioHostMsg_PlayStream -------->
|
| //
|
| @@ -93,30 +93,13 @@ class CONTENT_EXPORT AudioDevice
|
| AudioDevice(const media::AudioParameters& params, RenderCallback* callback);
|
|
|
| // AudioRendererSink implementation.
|
| -
|
| virtual void Initialize(const media::AudioParameters& params,
|
| RenderCallback* callback) OVERRIDE;
|
| - // Starts audio playback.
|
| virtual void Start() OVERRIDE;
|
| -
|
| - // Stops audio playback.
|
| virtual void Stop() OVERRIDE;
|
| -
|
| - // Resumes playback if currently paused.
|
| virtual void Play() OVERRIDE;
|
| -
|
| - // Pauses playback.
|
| - // If |flush| is true then any pending audio that is in the pipeline
|
| - // (has not yet reached the hardware) will be discarded. In this case,
|
| - // when Play() is later called, no previous pending audio will be
|
| - // rendered.
|
| virtual void Pause(bool flush) OVERRIDE;
|
| -
|
| - // Sets the playback volume, with range [0.0, 1.0] inclusive.
|
| - // Returns |true| on success.
|
| virtual bool SetVolume(double volume) OVERRIDE;
|
| -
|
| - // Gets the playback volume, with range [0.0, 1.0] inclusive.
|
| virtual void GetVolume(double* volume) OVERRIDE;
|
|
|
| // Methods called on IO thread ----------------------------------------------
|
| @@ -136,7 +119,7 @@ class CONTENT_EXPORT AudioDevice
|
| // The following methods are tasks posted on the IO thread that needs to
|
| // be executed on that thread. They interact with AudioMessageFilter and
|
| // sends IPC messages on that thread.
|
| - void InitializeOnIOThread(const media::AudioParameters& params);
|
| + void CreateStreamOnIOThread(const media::AudioParameters& params);
|
| void PlayOnIOThread();
|
| void PauseOnIOThread(bool flush);
|
| void ShutDownOnIOThread();
|
|
|