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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MEDIA_MUTEABLE_AUDIO_OUTPUT_STREAM_H_
6 #define MEDIA_MUTEABLE_AUDIO_OUTPUT_STREAM_H_
7
8 #include "media/audio/audio_io.h"
9
10 namespace media {
11
12 class MEDIA_EXPORT MuteableAudioOutputStream : public AudioOutputStream {
13 public:
14 // Volume control coming from hardware. It overrides volume when it's
15 // true. Otherwise, use SetVolume(double volume) for scaling.
16 // This is needed because platform voice volume never goes to zero in
17 // COMMUNICATION mode on Android.
18 virtual void SetMute(bool muted) = 0;
19 };
20
21 } // namespace media
22
23 #endif // MEDIA_MUTEABLE_AUDIO_OUTPUT_STREAM_H_
OLDNEW
« 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