Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(449)

Unified Diff: media/filters/reference_audio_renderer.h

Issue 9121062: Remove "high"-latency audio code path (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase ToT yet again Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/audio/audio_output_controller_unittest.cc ('k') | media/filters/reference_audio_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/reference_audio_renderer.h
diff --git a/media/filters/reference_audio_renderer.h b/media/filters/reference_audio_renderer.h
deleted file mode 100644
index 3985dfb247a30d33b682a9a769afb578f93dae94..0000000000000000000000000000000000000000
--- a/media/filters/reference_audio_renderer.h
+++ /dev/null
@@ -1,71 +0,0 @@
-// Copyright (c) 2012 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_FILTERS_REFERENCE_AUDIO_RENDERER_H_
-#define MEDIA_FILTERS_REFERENCE_AUDIO_RENDERER_H_
-
-// This is the reference implementation of AudioRenderer, which uses the audio
-// interfaces to open an audio device. It cannot be used in the sandbox, but is
-// used in other applications such as the test player.
-//
-// Note: THIS IS NOT THE AUDIO RENDERER USED IN CHROME.
-//
-// See src/content/renderer/media/audio_renderer_impl.h for chrome's
-// implementation.
-
-#include "media/audio/audio_output_controller.h"
-#include "media/filters/audio_renderer_base.h"
-
-class AudioManager;
-
-namespace media {
-
-class MEDIA_EXPORT ReferenceAudioRenderer
- : public AudioRendererBase,
- public AudioOutputController::EventHandler {
- public:
- explicit ReferenceAudioRenderer(AudioManager* audio_manager);
- virtual ~ReferenceAudioRenderer();
-
- // Filter implementation.
- virtual void SetPlaybackRate(float playback_rate) OVERRIDE;
-
- // AudioRenderer implementation.
- virtual void SetVolume(float volume) OVERRIDE;
-
- // AudioController::EventHandler implementation.
- virtual void OnCreated(AudioOutputController* controller) OVERRIDE;
- virtual void OnPlaying(AudioOutputController* controller) OVERRIDE;
- virtual void OnPaused(AudioOutputController* controller) OVERRIDE;
- virtual void OnError(AudioOutputController* controller,
- int error_code) OVERRIDE;
- virtual void OnMoreData(AudioOutputController* controller,
- AudioBuffersState buffers_state) OVERRIDE;
-
- protected:
- // AudioRendererBase implementation.
- virtual bool OnInitialize(int bits_per_channel,
- ChannelLayout channel_layout,
- int sample_rate) OVERRIDE;
- virtual void OnStop() OVERRIDE;
- virtual void OnRenderEndOfStream() OVERRIDE;
-
- private:
- scoped_refptr<AudioManager> audio_manager_;
- int bytes_per_second_;
- bool has_buffered_data_;
-
- // Audio output controller.
- scoped_refptr<media::AudioOutputController> controller_;
-
- // Audio buffer.
- int buffer_capacity_;
- scoped_array<uint8> buffer_;
-
- DISALLOW_COPY_AND_ASSIGN(ReferenceAudioRenderer);
-};
-
-} // namespace media
-
-#endif // MEDIA_FILTERS_REFERENCE_AUDIO_RENDERER_H_
« no previous file with comments | « media/audio/audio_output_controller_unittest.cc ('k') | media/filters/reference_audio_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698