diff options
Diffstat (limited to 'chromium/media/audio/clockless_audio_sink.h')
-rw-r--r-- | chromium/media/audio/clockless_audio_sink.h | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/chromium/media/audio/clockless_audio_sink.h b/chromium/media/audio/clockless_audio_sink.h deleted file mode 100644 index 9e73b1a8817..00000000000 --- a/chromium/media/audio/clockless_audio_sink.h +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2013 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef MEDIA_AUDIO_CLOCKLESS_AUDIO_SINK_H_ -#define MEDIA_AUDIO_CLOCKLESS_AUDIO_SINK_H_ - -#include "base/memory/scoped_ptr.h" -#include "base/time/time.h" -#include "media/base/audio_renderer_sink.h" - -namespace base { -class MessageLoopProxy; -} - -namespace media { -class AudioBus; -class ClocklessAudioSinkThread; - -// Implementation of an AudioRendererSink that consumes the audio as fast as -// possible. This class does not support multiple Play()/Pause() events. -class MEDIA_EXPORT ClocklessAudioSink - : NON_EXPORTED_BASE(public AudioRendererSink) { - public: - ClocklessAudioSink(); - - // AudioRendererSink implementation. - virtual void Initialize(const AudioParameters& params, - RenderCallback* callback) OVERRIDE; - virtual void Start() OVERRIDE; - virtual void Stop() OVERRIDE; - virtual void Pause() OVERRIDE; - virtual void Play() OVERRIDE; - virtual bool SetVolume(double volume) OVERRIDE; - - // Returns the time taken to consume all the audio. - base::TimeDelta render_time() { return playback_time_; } - - protected: - virtual ~ClocklessAudioSink(); - - private: - scoped_ptr<ClocklessAudioSinkThread> thread_; - bool initialized_; - bool playing_; - - // Time taken in last set of Render() calls. - base::TimeDelta playback_time_; - - DISALLOW_COPY_AND_ASSIGN(ClocklessAudioSink); -}; - -} // namespace media - -#endif // MEDIA_AUDIO_CLOCKLESS_AUDIO_SINK_H_ |