| 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/macros.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "media/audio/audio_io.h" | 15 #include "media/audio/audio_io.h" |
| 16 #include "media/audio/audio_parameters.h" | |
| 17 #include "media/audio/fake_audio_worker.h" | 16 #include "media/audio/fake_audio_worker.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; | 23 class SimpleSource; |
| 24 | 24 |
| 25 // This class acts as a fake audio input stream. The default is to generate a | 25 // 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, | 26 // 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 | 27 // in which case the indicated .wav file will be read and played into the |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 70 |
| 71 scoped_ptr<AudioOutputStream::AudioSourceCallback> audio_source_; | 71 scoped_ptr<AudioOutputStream::AudioSourceCallback> audio_source_; |
| 72 scoped_ptr<media::AudioBus> audio_bus_; | 72 scoped_ptr<media::AudioBus> audio_bus_; |
| 73 | 73 |
| 74 DISALLOW_COPY_AND_ASSIGN(FakeAudioInputStream); | 74 DISALLOW_COPY_AND_ASSIGN(FakeAudioInputStream); |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 } // namespace media | 77 } // namespace media |
| 78 | 78 |
| 79 #endif // MEDIA_AUDIO_FAKE_AUDIO_INPUT_STREAM_H_ | 79 #endif // MEDIA_AUDIO_FAKE_AUDIO_INPUT_STREAM_H_ |
| OLD | NEW |