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

Unified Diff: media/audio/simple_sources.cc

Issue 10184011: Remove unused parameter "stream" from all variants of OnMoreData(). (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 8 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/simple_sources.h ('k') | media/audio/simple_sources_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/simple_sources.cc
===================================================================
--- media/audio/simple_sources.cc (revision 133451)
+++ media/audio/simple_sources.cc (working copy)
@@ -4,8 +4,8 @@
#include "media/audio/simple_sources.h"
-#include <algorithm>
#include <math.h>
+#include <algorithm>
#include "base/basictypes.h"
#include "base/logging.h"
@@ -32,8 +32,7 @@
// The implementation could be more efficient if a lookup table is constructed
// but it is efficient enough for our simple needs.
uint32 SineWaveAudioSource::OnMoreData(
- AudioOutputStream* stream, uint8* dest, uint32 max_size,
- AudioBuffersState audio_buffers) {
+ uint8* dest, uint32 max_size, AudioBuffersState audio_buffers) {
const double kTwoPi = 2.0 * 3.141592653589;
double f = freq_ / sample_freq_;
int16* sin_tbl = reinterpret_cast<int16*>(dest);
@@ -67,8 +66,7 @@
PushSource::~PushSource() { }
uint32 PushSource::OnMoreData(
- AudioOutputStream* stream, uint8* dest, uint32 max_size,
- AudioBuffersState buffers_state) {
+ uint8* dest, uint32 max_size, AudioBuffersState buffers_state) {
return buffer_.Read(dest, max_size);
}
« no previous file with comments | « media/audio/simple_sources.h ('k') | media/audio/simple_sources_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698