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

Unified Diff: media/audio/android/muteable_audio_output_stream.h

Issue 2917203002: Add MuteableAudioOutputStream interface to export SetMute(). (Closed)
Patch Set: Bug fixed Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/audio/android/audio_manager_android.cc ('k') | media/audio/android/opensles_output.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/android/muteable_audio_output_stream.h
diff --git a/media/audio/android/muteable_audio_output_stream.h b/media/audio/android/muteable_audio_output_stream.h
new file mode 100644
index 0000000000000000000000000000000000000000..8ef13a640dd124372f2101fa32bc3572932008f1
--- /dev/null
+++ b/media/audio/android/muteable_audio_output_stream.h
@@ -0,0 +1,23 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MEDIA_MUTEABLE_AUDIO_OUTPUT_STREAM_H_
+#define MEDIA_MUTEABLE_AUDIO_OUTPUT_STREAM_H_
+
+#include "media/audio/audio_io.h"
+
+namespace media {
+
+class MEDIA_EXPORT MuteableAudioOutputStream : public AudioOutputStream {
+ public:
+ // Volume control coming from hardware. It overrides volume when it's
+ // true. Otherwise, use SetVolume(double volume) for scaling.
+ // This is needed because platform voice volume never goes to zero in
+ // COMMUNICATION mode on Android.
+ virtual void SetMute(bool muted) = 0;
+};
+
+} // namespace media
+
+#endif // MEDIA_MUTEABLE_AUDIO_OUTPUT_STREAM_H_
« no previous file with comments | « media/audio/android/audio_manager_android.cc ('k') | media/audio/android/opensles_output.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698