OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 const bool keyPressed, | 71 const bool keyPressed, |
72 uint32_t& newMicLevel) override; | 72 uint32_t& newMicLevel) override; |
73 int32_t NeedMorePlayData(const size_t nSamples, | 73 int32_t NeedMorePlayData(const size_t nSamples, |
74 const size_t nBytesPerSample, | 74 const size_t nBytesPerSample, |
75 const size_t nChannels, | 75 const size_t nChannels, |
76 const uint32_t samplesPerSec, | 76 const uint32_t samplesPerSec, |
77 void* audioSamples, | 77 void* audioSamples, |
78 size_t& nSamplesOut, | 78 size_t& nSamplesOut, |
79 int64_t* elapsed_time_ms, | 79 int64_t* elapsed_time_ms, |
80 int64_t* ntp_time_ms) override; | 80 int64_t* ntp_time_ms) override; |
81 int OnDataAvailable(const int voe_channels[], | |
82 size_t number_of_voe_channels, | |
83 const int16_t* audio_data, | |
84 int sample_rate, | |
85 size_t number_of_channels, | |
86 size_t number_of_frames, | |
87 int audio_delay_milliseconds, | |
88 int current_volume, | |
89 bool key_pressed, | |
90 bool need_audio_processing) override; | |
91 void OnData(int voe_channel, | |
92 const void* audio_data, | |
93 int bits_per_sample, | |
94 int sample_rate, | |
95 size_t number_of_channels, | |
96 size_t number_of_frames) override; | |
97 void PushCaptureData(int voe_channel, | 81 void PushCaptureData(int voe_channel, |
98 const void* audio_data, | 82 const void* audio_data, |
99 int bits_per_sample, | 83 int bits_per_sample, |
100 int sample_rate, | 84 int sample_rate, |
101 size_t number_of_channels, | 85 size_t number_of_channels, |
102 size_t number_of_frames) override; | 86 size_t number_of_frames) override; |
103 void PullRenderData(int bits_per_sample, | 87 void PullRenderData(int bits_per_sample, |
104 int sample_rate, | 88 int sample_rate, |
105 size_t number_of_channels, | 89 size_t number_of_channels, |
106 size_t number_of_frames, | 90 size_t number_of_frames, |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 rtc::CriticalSection callbackCritSect_; | 131 rtc::CriticalSection callbackCritSect_; |
148 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; | 132 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; |
149 | 133 |
150 AudioFrame audioFrame_; | 134 AudioFrame audioFrame_; |
151 voe::SharedData* shared_; | 135 voe::SharedData* shared_; |
152 }; | 136 }; |
153 | 137 |
154 } // namespace webrtc | 138 } // namespace webrtc |
155 | 139 |
156 #endif // WEBRTC_VOICE_ENGINE_VOE_BASE_IMPL_H | 140 #endif // WEBRTC_VOICE_ENGINE_VOE_BASE_IMPL_H |
OLD | NEW |