1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
media / audio / android / muteable_audio_output_stream.h [blame]
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MEDIA_AUDIO_ANDROID_MUTEABLE_AUDIO_OUTPUT_STREAM_H_
#define MEDIA_AUDIO_ANDROID_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_AUDIO_ANDROID_MUTEABLE_AUDIO_OUTPUT_STREAM_H_