OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BASE_FAKE_AUDIO_RENDERER_SINK_H_ | 5 #ifndef MEDIA_BASE_FAKE_AUDIO_RENDERER_SINK_H_ |
6 #define MEDIA_BASE_FAKE_AUDIO_RENDERER_SINK_H_ | 6 #define MEDIA_BASE_FAKE_AUDIO_RENDERER_SINK_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "media/audio/audio_parameters.h" | 13 #include "media/base/audio_parameters.h" |
14 #include "media/base/audio_renderer_sink.h" | 14 #include "media/base/audio_renderer_sink.h" |
15 #include "media/base/output_device_info.h" | 15 #include "media/base/output_device_info.h" |
16 | 16 |
17 namespace media { | 17 namespace media { |
18 | 18 |
19 class FakeAudioRendererSink : public AudioRendererSink { | 19 class FakeAudioRendererSink : public AudioRendererSink { |
20 public: | 20 public: |
21 enum State { | 21 enum State { |
22 kUninitialized, | 22 kUninitialized, |
23 kInitialized, | 23 kInitialized, |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 State state_; | 61 State state_; |
62 RenderCallback* callback_; | 62 RenderCallback* callback_; |
63 OutputDeviceInfo output_device_info_; | 63 OutputDeviceInfo output_device_info_; |
64 | 64 |
65 DISALLOW_COPY_AND_ASSIGN(FakeAudioRendererSink); | 65 DISALLOW_COPY_AND_ASSIGN(FakeAudioRendererSink); |
66 }; | 66 }; |
67 | 67 |
68 } // namespace media | 68 } // namespace media |
69 | 69 |
70 #endif // MEDIA_BASE_FAKE_AUDIO_RENDERER_SINK_H_ | 70 #endif // MEDIA_BASE_FAKE_AUDIO_RENDERER_SINK_H_ |
OLD | NEW |