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

Side by Side Diff: media/base/audio_renderer_sink.h

Issue 10837032: Fix playback rate w/o audio. Remove unused SetPlaybackRate(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/audio/null_audio_sink.cc ('k') | media/filters/audio_renderer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef MEDIA_BASE_AUDIO_RENDERER_SINK_H_ 5 #ifndef MEDIA_BASE_AUDIO_RENDERER_SINK_H_
6 #define MEDIA_BASE_AUDIO_RENDERER_SINK_H_ 6 #define MEDIA_BASE_AUDIO_RENDERER_SINK_H_
7 7
8 #include <vector> 8 #include <vector>
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 // Stops audio playback. 49 // Stops audio playback.
50 virtual void Stop() = 0; 50 virtual void Stop() = 0;
51 51
52 // Pauses playback. 52 // Pauses playback.
53 virtual void Pause(bool flush) = 0; 53 virtual void Pause(bool flush) = 0;
54 54
55 // Resumes playback after calling Pause(). 55 // Resumes playback after calling Pause().
56 virtual void Play() = 0; 56 virtual void Play() = 0;
57 57
58 // Called to inform the sink of a change in playback rate. Override if
59 // subclass needs the playback rate.
60 virtual void SetPlaybackRate(float rate) {}
61
62 // Sets the playback volume, with range [0.0, 1.0] inclusive. 58 // Sets the playback volume, with range [0.0, 1.0] inclusive.
63 // Returns |true| on success. 59 // Returns |true| on success.
64 virtual bool SetVolume(double volume) = 0; 60 virtual bool SetVolume(double volume) = 0;
65 61
66 protected: 62 protected:
67 friend class base::RefCountedThreadSafe<AudioRendererSink>; 63 friend class base::RefCountedThreadSafe<AudioRendererSink>;
68 virtual ~AudioRendererSink() {} 64 virtual ~AudioRendererSink() {}
69 }; 65 };
70 66
71 } // namespace media 67 } // namespace media
72 68
73 #endif // MEDIA_BASE_AUDIO_RENDERER_SINK_H_ 69 #endif // MEDIA_BASE_AUDIO_RENDERER_SINK_H_
OLDNEW
« no previous file with comments | « media/audio/null_audio_sink.cc ('k') | media/filters/audio_renderer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698