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

Unified Diff: media/audio/fake_audio_output_stream.h

Issue 357004: SetVolume and GetVolume take one volume instead of separate left and right vo... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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.h ('k') | media/audio/fake_audio_output_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/fake_audio_output_stream.h
===================================================================
--- media/audio/fake_audio_output_stream.h (revision 30948)
+++ media/audio/fake_audio_output_stream.h (working copy)
@@ -22,13 +22,12 @@
virtual bool Open(size_t packet_size);
virtual void Start(AudioSourceCallback* callback);
virtual void Stop();
- virtual void SetVolume(double left_level, double right_level);
- virtual void GetVolume(double* left_level, double* right_level);
+ virtual void SetVolume(double volume);
+ virtual void GetVolume(double* volume);
virtual void Close();
char* buffer() { return buffer_.get(); }
- double left_volume() { return left_volume_; }
- double right_volume() { return right_volume_; }
+ double volume() { return volume_; }
private:
FakeAudioOutputStream();
@@ -38,8 +37,7 @@
static bool has_created_fake_stream_;
static FakeAudioOutputStream* last_fake_stream_;
- double left_volume_;
- double right_volume_;
+ double volume_;
AudioSourceCallback* callback_;
scoped_array<char> buffer_;
size_t packet_size_;
@@ -48,3 +46,4 @@
};
#endif // MEDIA_AUDIO_FAKE_AUDIO_OUTPUT_STREAM_H_
+
« no previous file with comments | « media/audio/audio_output.h ('k') | media/audio/fake_audio_output_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698