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

Side by Side Diff: media/audio/virtual_audio_input_stream.h

Issue 645923002: Add support for audio input mute detection on all platforms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 6 years, 2 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/pulse/pulse_input.cc ('k') | media/audio/virtual_audio_input_stream.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_AUDIO_VIRTUAL_AUDIO_INPUT_STREAM_H_ 5 #ifndef MEDIA_AUDIO_VIRTUAL_AUDIO_INPUT_STREAM_H_
6 #define MEDIA_AUDIO_VIRTUAL_AUDIO_INPUT_STREAM_H_ 6 #define MEDIA_AUDIO_VIRTUAL_AUDIO_INPUT_STREAM_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // AudioInputStream: 49 // AudioInputStream:
50 virtual bool Open() override; 50 virtual bool Open() override;
51 virtual void Start(AudioInputCallback* callback) override; 51 virtual void Start(AudioInputCallback* callback) override;
52 virtual void Stop() override; 52 virtual void Stop() override;
53 virtual void Close() override; 53 virtual void Close() override;
54 virtual double GetMaxVolume() override; 54 virtual double GetMaxVolume() override;
55 virtual void SetVolume(double volume) override; 55 virtual void SetVolume(double volume) override;
56 virtual double GetVolume() override; 56 virtual double GetVolume() override;
57 virtual void SetAutomaticGainControl(bool enabled) override; 57 virtual void SetAutomaticGainControl(bool enabled) override;
58 virtual bool GetAutomaticGainControl() override; 58 virtual bool GetAutomaticGainControl() override;
59 virtual bool IsMuted() override;
59 60
60 // Attaches a VirtualAudioOutputStream to be used as input. This 61 // Attaches a VirtualAudioOutputStream to be used as input. This
61 // VirtualAudioInputStream must outlive all attached streams, so any attached 62 // VirtualAudioInputStream must outlive all attached streams, so any attached
62 // stream must be closed (which causes a detach) before 63 // stream must be closed (which causes a detach) before
63 // VirtualAudioInputStream is destroyed. 64 // VirtualAudioInputStream is destroyed.
64 virtual void AddOutputStream(VirtualAudioOutputStream* stream, 65 virtual void AddOutputStream(VirtualAudioOutputStream* stream,
65 const AudioParameters& output_params); 66 const AudioParameters& output_params);
66 67
67 // Detaches a VirtualAudioOutputStream and removes it as input. 68 // Detaches a VirtualAudioOutputStream and removes it as input.
68 virtual void RemoveOutputStream(VirtualAudioOutputStream* stream, 69 virtual void RemoveOutputStream(VirtualAudioOutputStream* stream,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 FakeAudioConsumer fake_consumer_; 108 FakeAudioConsumer fake_consumer_;
108 109
109 base::ThreadChecker thread_checker_; 110 base::ThreadChecker thread_checker_;
110 111
111 DISALLOW_COPY_AND_ASSIGN(VirtualAudioInputStream); 112 DISALLOW_COPY_AND_ASSIGN(VirtualAudioInputStream);
112 }; 113 };
113 114
114 } // namespace media 115 } // namespace media
115 116
116 #endif // MEDIA_AUDIO_VIRTUAL_AUDIO_INPUT_STREAM_H_ 117 #endif // MEDIA_AUDIO_VIRTUAL_AUDIO_INPUT_STREAM_H_
OLDNEW
« no previous file with comments | « media/audio/pulse/pulse_input.cc ('k') | media/audio/virtual_audio_input_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698