OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_AUDIO_SINK_ADAPTER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_AUDIO_SINK_ADAPTER_H_ |
6 #define CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_AUDIO_SINK_ADAPTER_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_AUDIO_SINK_ADAPTER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "content/public/renderer/media_stream_audio_sink.h" | 13 #include "content/public/renderer/media_stream_audio_sink.h" |
14 #include "media/audio/audio_parameters.h" | 14 #include "media/base/audio_parameters.h" |
15 | 15 |
16 namespace webrtc { | 16 namespace webrtc { |
17 class AudioTrackSinkInterface; | 17 class AudioTrackSinkInterface; |
18 } // namespace webrtc | 18 } // namespace webrtc |
19 | 19 |
20 namespace content { | 20 namespace content { |
21 | 21 |
22 // Adapter to the webrtc::AudioTrackSinkInterface of the audio track. | 22 // Adapter to the webrtc::AudioTrackSinkInterface of the audio track. |
23 // This class is used in between the MediaStreamAudioSink and | 23 // This class is used in between the MediaStreamAudioSink and |
24 // webrtc::AudioTrackSinkInterface. It gets data callback via the | 24 // webrtc::AudioTrackSinkInterface. It gets data callback via the |
(...skipping 17 matching lines...) Expand all Loading... |
42 | 42 |
43 media::AudioParameters params_; | 43 media::AudioParameters params_; |
44 std::unique_ptr<int16_t[]> interleaved_data_; | 44 std::unique_ptr<int16_t[]> interleaved_data_; |
45 | 45 |
46 DISALLOW_COPY_AND_ASSIGN(WebRtcAudioSinkAdapter); | 46 DISALLOW_COPY_AND_ASSIGN(WebRtcAudioSinkAdapter); |
47 }; | 47 }; |
48 | 48 |
49 } // namespace content | 49 } // namespace content |
50 | 50 |
51 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_AUDIO_SINK_ADAPTER_H_ | 51 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_WEBRTC_AUDIO_SINK_ADAPTER_H_ |
OLD | NEW |