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

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

Issue 655713003: Standardize usage of virtual/override/final in media/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 26 matching lines...) Expand all
37 37
38 // Construct a target for audio loopback which mixes multiple data streams 38 // Construct a target for audio loopback which mixes multiple data streams
39 // into a single stream having the given |params|. |worker_task_runner| is 39 // into a single stream having the given |params|. |worker_task_runner| is
40 // the task runner on which AudioInputCallback methods are called and may or 40 // the task runner on which AudioInputCallback methods are called and may or
41 // may not be the single thread that invokes the AudioInputStream methods. 41 // may not be the single thread that invokes the AudioInputStream methods.
42 VirtualAudioInputStream( 42 VirtualAudioInputStream(
43 const AudioParameters& params, 43 const AudioParameters& params,
44 const scoped_refptr<base::SingleThreadTaskRunner>& worker_task_runner, 44 const scoped_refptr<base::SingleThreadTaskRunner>& worker_task_runner,
45 const AfterCloseCallback& after_close_cb); 45 const AfterCloseCallback& after_close_cb);
46 46
47 virtual ~VirtualAudioInputStream(); 47 ~VirtualAudioInputStream() override;
48 48
49 // AudioInputStream: 49 // AudioInputStream:
50 virtual bool Open() override; 50 bool Open() override;
51 virtual void Start(AudioInputCallback* callback) override; 51 void Start(AudioInputCallback* callback) override;
52 virtual void Stop() override; 52 void Stop() override;
53 virtual void Close() override; 53 void Close() override;
54 virtual double GetMaxVolume() override; 54 double GetMaxVolume() override;
55 virtual void SetVolume(double volume) override; 55 void SetVolume(double volume) override;
56 virtual double GetVolume() override; 56 double GetVolume() override;
57 virtual void SetAutomaticGainControl(bool enabled) override; 57 void SetAutomaticGainControl(bool enabled) override;
58 virtual bool GetAutomaticGainControl() override; 58 bool GetAutomaticGainControl() override;
59 virtual bool IsMuted() override; 59 bool IsMuted() override;
60 60
61 // Attaches a VirtualAudioOutputStream to be used as input. This 61 // Attaches a VirtualAudioOutputStream to be used as input. This
62 // VirtualAudioInputStream must outlive all attached streams, so any attached 62 // VirtualAudioInputStream must outlive all attached streams, so any attached
63 // stream must be closed (which causes a detach) before 63 // stream must be closed (which causes a detach) before
64 // VirtualAudioInputStream is destroyed. 64 // VirtualAudioInputStream is destroyed.
65 virtual void AddOutputStream(VirtualAudioOutputStream* stream, 65 virtual void AddOutputStream(VirtualAudioOutputStream* stream,
66 const AudioParameters& output_params); 66 const AudioParameters& output_params);
67 67
68 // Detaches a VirtualAudioOutputStream and removes it as input. 68 // Detaches a VirtualAudioOutputStream and removes it as input.
69 virtual void RemoveOutputStream(VirtualAudioOutputStream* stream, 69 virtual void RemoveOutputStream(VirtualAudioOutputStream* stream,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 FakeAudioConsumer fake_consumer_; 108 FakeAudioConsumer fake_consumer_;
109 109
110 base::ThreadChecker thread_checker_; 110 base::ThreadChecker thread_checker_;
111 111
112 DISALLOW_COPY_AND_ASSIGN(VirtualAudioInputStream); 112 DISALLOW_COPY_AND_ASSIGN(VirtualAudioInputStream);
113 }; 113 };
114 114
115 } // namespace media 115 } // namespace media
116 116
117 #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/test_audio_input_controller_factory.h ('k') | media/audio/virtual_audio_input_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698