OLD | NEW |
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 <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
| 13 #include "base/macros.h" |
13 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
14 #include "media/audio/audio_io.h" | 15 #include "media/audio/audio_io.h" |
15 #include "media/audio/audio_parameters.h" | 16 #include "media/audio/audio_parameters.h" |
16 #include "media/audio/fake_audio_worker.h" | 17 #include "media/audio/fake_audio_worker.h" |
17 | 18 |
18 namespace media { | 19 namespace media { |
19 | 20 |
20 class AudioBus; | 21 class AudioBus; |
21 class AudioManagerBase; | 22 class AudioManagerBase; |
22 class SimpleSource; | 23 class SimpleSource; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 70 |
70 scoped_ptr<AudioOutputStream::AudioSourceCallback> audio_source_; | 71 scoped_ptr<AudioOutputStream::AudioSourceCallback> audio_source_; |
71 scoped_ptr<media::AudioBus> audio_bus_; | 72 scoped_ptr<media::AudioBus> audio_bus_; |
72 | 73 |
73 DISALLOW_COPY_AND_ASSIGN(FakeAudioInputStream); | 74 DISALLOW_COPY_AND_ASSIGN(FakeAudioInputStream); |
74 }; | 75 }; |
75 | 76 |
76 } // namespace media | 77 } // namespace media |
77 | 78 |
78 #endif // MEDIA_AUDIO_FAKE_AUDIO_INPUT_STREAM_H_ | 79 #endif // MEDIA_AUDIO_FAKE_AUDIO_INPUT_STREAM_H_ |
OLD | NEW |