| 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 CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_AUDIO_SINK_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_AUDIO_SINK_H_ |
| 6 #define CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_AUDIO_SINK_H_ | 6 #define CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_AUDIO_SINK_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 virtual void OnData(const int16* audio_data, | 44 virtual void OnData(const int16* audio_data, |
| 45 int sample_rate, | 45 int sample_rate, |
| 46 int number_of_channels, | 46 int number_of_channels, |
| 47 int number_of_frames) = 0; | 47 int number_of_frames) = 0; |
| 48 | 48 |
| 49 // Callback called when the format of the audio stream has changed. | 49 // Callback called when the format of the audio stream has changed. |
| 50 // This is called on the same thread as OnData(). | 50 // This is called on the same thread as OnData(). |
| 51 virtual void OnSetFormat(const media::AudioParameters& params) = 0; | 51 virtual void OnSetFormat(const media::AudioParameters& params) = 0; |
| 52 | 52 |
| 53 protected: | 53 protected: |
| 54 virtual ~MediaStreamAudioSink() {} | 54 ~MediaStreamAudioSink() override {} |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 } // namespace content | 57 } // namespace content |
| 58 | 58 |
| 59 #endif // CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_AUDIO_SINK_H_ | 59 #endif // CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_AUDIO_SINK_H_ |
| OLD | NEW |