| 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 #ifndef MEDIA_AUDIO_FAKE_AUDIO_OUTPUT_STREAM_H_ | 5 #ifndef MEDIA_AUDIO_FAKE_AUDIO_OUTPUT_STREAM_H_ |
| 6 #define MEDIA_AUDIO_FAKE_AUDIO_OUTPUT_STREAM_H_ | 6 #define MEDIA_AUDIO_FAKE_AUDIO_OUTPUT_STREAM_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "media/audio/audio_io.h" | 10 #include "media/audio/audio_io.h" |
| 11 #include "media/audio/audio_parameters.h" | |
| 12 #include "media/audio/fake_audio_worker.h" | 11 #include "media/audio/fake_audio_worker.h" |
| 12 #include "media/base/audio_parameters.h" |
| 13 | 13 |
| 14 namespace media { | 14 namespace media { |
| 15 | 15 |
| 16 class AudioManagerBase; | 16 class AudioManagerBase; |
| 17 | 17 |
| 18 // A fake implementation of AudioOutputStream. Used for testing and when a real | 18 // A fake implementation of AudioOutputStream. Used for testing and when a real |
| 19 // audio output device is unavailable or refusing output (e.g. remote desktop). | 19 // audio output device is unavailable or refusing output (e.g. remote desktop). |
| 20 // Callbacks are driven on the AudioManager's message loop. | 20 // Callbacks are driven on the AudioManager's message loop. |
| 21 class MEDIA_EXPORT FakeAudioOutputStream : public AudioOutputStream { | 21 class MEDIA_EXPORT FakeAudioOutputStream : public AudioOutputStream { |
| 22 public: | 22 public: |
| (...skipping 20 matching lines...) Expand all Loading... |
| 43 AudioSourceCallback* callback_; | 43 AudioSourceCallback* callback_; |
| 44 FakeAudioWorker fake_worker_; | 44 FakeAudioWorker fake_worker_; |
| 45 scoped_ptr<AudioBus> audio_bus_; | 45 scoped_ptr<AudioBus> audio_bus_; |
| 46 | 46 |
| 47 DISALLOW_COPY_AND_ASSIGN(FakeAudioOutputStream); | 47 DISALLOW_COPY_AND_ASSIGN(FakeAudioOutputStream); |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 } // namespace media | 50 } // namespace media |
| 51 | 51 |
| 52 #endif // MEDIA_AUDIO_FAKE_AUDIO_OUTPUT_STREAM_H_ | 52 #endif // MEDIA_AUDIO_FAKE_AUDIO_OUTPUT_STREAM_H_ |
| OLD | NEW |