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

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

Issue 2533273002: media: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years 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/clockless_audio_sink.h ('k') | media/audio/fake_audio_worker.h » ('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 // A fake implementation of AudioInputStream, useful for testing purpose. 5 // A fake implementation of AudioInputStream, useful for testing purpose.
6 6
7 #ifndef MEDIA_AUDIO_FAKE_AUDIO_INPUT_STREAM_H_ 7 #ifndef MEDIA_AUDIO_FAKE_AUDIO_INPUT_STREAM_H_
8 #define MEDIA_AUDIO_FAKE_AUDIO_INPUT_STREAM_H_ 8 #define MEDIA_AUDIO_FAKE_AUDIO_INPUT_STREAM_H_
9 9
10 #include <memory> 10 #include <memory>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/callback_forward.h" 13 #include "base/callback_forward.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "media/audio/audio_io.h" 15 #include "media/audio/audio_io.h"
16 #include "media/audio/fake_audio_worker.h" 16 #include "media/audio/fake_audio_worker.h"
17 #include "media/base/audio_parameters.h" 17 #include "media/base/audio_parameters.h"
18 18
19 namespace media { 19 namespace media {
20 20
21 class AudioBus; 21 class AudioBus;
22 class AudioManagerBase; 22 class AudioManagerBase;
23 class SimpleSource;
24 23
25 // This class acts as a fake audio input stream. The default is to generate a 24 // This class acts as a fake audio input stream. The default is to generate a
26 // beeping sound unless --use-file-for-fake-audio-capture=<file> is specified, 25 // beeping sound unless --use-file-for-fake-audio-capture=<file> is specified,
27 // in which case the indicated .wav file will be read and played into the 26 // in which case the indicated .wav file will be read and played into the
28 // stream. 27 // stream.
29 class MEDIA_EXPORT FakeAudioInputStream 28 class MEDIA_EXPORT FakeAudioInputStream
30 : public AudioInputStream { 29 : public AudioInputStream {
31 public: 30 public:
32 static AudioInputStream* MakeFakeStream( 31 static AudioInputStream* MakeFakeStream(
33 AudioManagerBase* manager, const AudioParameters& params); 32 AudioManagerBase* manager, const AudioParameters& params);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 69
71 std::unique_ptr<AudioOutputStream::AudioSourceCallback> audio_source_; 70 std::unique_ptr<AudioOutputStream::AudioSourceCallback> audio_source_;
72 std::unique_ptr<media::AudioBus> audio_bus_; 71 std::unique_ptr<media::AudioBus> audio_bus_;
73 72
74 DISALLOW_COPY_AND_ASSIGN(FakeAudioInputStream); 73 DISALLOW_COPY_AND_ASSIGN(FakeAudioInputStream);
75 }; 74 };
76 75
77 } // namespace media 76 } // namespace media
78 77
79 #endif // MEDIA_AUDIO_FAKE_AUDIO_INPUT_STREAM_H_ 78 #endif // MEDIA_AUDIO_FAKE_AUDIO_INPUT_STREAM_H_
OLDNEW
« no previous file with comments | « media/audio/clockless_audio_sink.h ('k') | media/audio/fake_audio_worker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698