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_BASE_AUDIO_RENDERER_SINK_H_ | 5 #ifndef MEDIA_BASE_AUDIO_RENDERER_SINK_H_ |
6 #define MEDIA_BASE_AUDIO_RENDERER_SINK_H_ | 6 #define MEDIA_BASE_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/callback.h" | 12 #include "base/callback.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "media/audio/audio_parameters.h" | |
15 #include "media/base/audio_bus.h" | 14 #include "media/base/audio_bus.h" |
| 15 #include "media/base/audio_parameters.h" |
16 #include "media/base/output_device_info.h" | 16 #include "media/base/output_device_info.h" |
17 #include "url/origin.h" | 17 #include "url/origin.h" |
18 | 18 |
19 namespace media { | 19 namespace media { |
20 | 20 |
21 // AudioRendererSink is an interface representing the end-point for | 21 // AudioRendererSink is an interface representing the end-point for |
22 // rendered audio. An implementation is expected to | 22 // rendered audio. An implementation is expected to |
23 // periodically call Render() on a callback object. | 23 // periodically call Render() on a callback object. |
24 | 24 |
25 class AudioRendererSink | 25 class AudioRendererSink |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 const url::Origin& security_origin, | 96 const url::Origin& security_origin, |
97 const OutputDeviceStatusCB& callback) = 0; | 97 const OutputDeviceStatusCB& callback) = 0; |
98 | 98 |
99 protected: | 99 protected: |
100 ~SwitchableAudioRendererSink() override {} | 100 ~SwitchableAudioRendererSink() override {} |
101 }; | 101 }; |
102 | 102 |
103 } // namespace media | 103 } // namespace media |
104 | 104 |
105 #endif // MEDIA_BASE_AUDIO_RENDERER_SINK_H_ | 105 #endif // MEDIA_BASE_AUDIO_RENDERER_SINK_H_ |
OLD | NEW |