summaryrefslogtreecommitdiffstats
path: root/media/audio/fake_audio_output_stream.cc
diff options
context:
space:
mode:
Diffstat (limited to 'media/audio/fake_audio_output_stream.cc')
-rw-r--r--media/audio/fake_audio_output_stream.cc13
1 files changed, 5 insertions, 8 deletions
diff --git a/media/audio/fake_audio_output_stream.cc b/media/audio/fake_audio_output_stream.cc
index af69a2f..cd57719 100644
--- a/media/audio/fake_audio_output_stream.cc
+++ b/media/audio/fake_audio_output_stream.cc
@@ -39,14 +39,12 @@ void FakeAudioOutputStream::Start(AudioSourceCallback* callback) {
void FakeAudioOutputStream::Stop() {
}
-void FakeAudioOutputStream::SetVolume(double left_level, double right_level) {
- left_volume_ = left_level;
- right_volume_ = right_level;
+void FakeAudioOutputStream::SetVolume(double volume) {
+ volume_ = volume;
}
-void FakeAudioOutputStream::GetVolume(double* left_level, double* right_level) {
- *left_level = left_volume_;
- *right_level = right_volume_;
+void FakeAudioOutputStream::GetVolume(double* volume) {
+ *volume = volume_;
}
void FakeAudioOutputStream::Close() {
@@ -59,8 +57,7 @@ void FakeAudioOutputStream::Close() {
}
FakeAudioOutputStream::FakeAudioOutputStream()
- : left_volume_(0),
- right_volume_(0),
+ : volume_(0),
callback_(NULL),
packet_size_(0) {
}