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

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

Issue 15872004: Disable preroll duration increase on underflow for MediaSource playback. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address CR comments Created 7 years, 6 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
« no previous file with comments | « no previous file | media/base/mock_filters.h » ('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_H_ 5 #ifndef MEDIA_BASE_AUDIO_RENDERER_H_
6 #define MEDIA_BASE_AUDIO_RENDERER_H_ 6 #define MEDIA_BASE_AUDIO_RENDERER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // when complete. 74 // when complete.
75 virtual void Stop(const base::Closure& callback) = 0; 75 virtual void Stop(const base::Closure& callback) = 0;
76 76
77 // Updates the current playback rate. 77 // Updates the current playback rate.
78 virtual void SetPlaybackRate(float playback_rate) = 0; 78 virtual void SetPlaybackRate(float playback_rate) = 0;
79 79
80 // Sets the output volume. 80 // Sets the output volume.
81 virtual void SetVolume(float volume) = 0; 81 virtual void SetVolume(float volume) = 0;
82 82
83 // Resumes playback after underflow occurs. 83 // Resumes playback after underflow occurs.
84 // 84 virtual void ResumeAfterUnderflow() = 0;
85 // |buffer_more_audio| is set to true if you want to increase the size of the
86 // decoded audio buffer.
87 virtual void ResumeAfterUnderflow(bool buffer_more_audio) = 0;
88 85
89 private: 86 private:
90 DISALLOW_COPY_AND_ASSIGN(AudioRenderer); 87 DISALLOW_COPY_AND_ASSIGN(AudioRenderer);
91 }; 88 };
92 89
93 } // namespace media 90 } // namespace media
94 91
95 #endif // MEDIA_BASE_AUDIO_RENDERER_H_ 92 #endif // MEDIA_BASE_AUDIO_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | media/base/mock_filters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698