Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Unified Diff: webrtc/voice_engine/voe_base_impl.cc

Issue 2219653004: Remove old methods in AudioTransport, make it pass a gn build (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix compile. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/voice_engine/voe_base_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/voice_engine/voe_base_impl.cc
diff --git a/webrtc/voice_engine/voe_base_impl.cc b/webrtc/voice_engine/voe_base_impl.cc
index bfc85fc02acac3441c7c20524606a1ee6faf10b5..9c917b5881e57e4a3bab242fc822cb8ef03c2952 100644
--- a/webrtc/voice_engine/voe_base_impl.cc
+++ b/webrtc/voice_engine/voe_base_impl.cc
@@ -107,43 +107,6 @@ int32_t VoEBaseImpl::NeedMorePlayData(const size_t nSamples,
return 0;
}
-int VoEBaseImpl::OnDataAvailable(const int voe_channels[],
- size_t number_of_voe_channels,
- const int16_t* audio_data, int sample_rate,
- size_t number_of_channels,
- size_t number_of_frames,
- int audio_delay_milliseconds, int volume,
- bool key_pressed, bool need_audio_processing) {
- if (number_of_voe_channels == 0) return 0;
-
- if (need_audio_processing) {
- return ProcessRecordedDataWithAPM(
- voe_channels, number_of_voe_channels, audio_data, sample_rate,
- number_of_channels, number_of_frames, audio_delay_milliseconds, 0,
- volume, key_pressed);
- }
-
- // No need to go through the APM, demultiplex the data to each VoE channel,
- // encode and send to the network.
- for (size_t i = 0; i < number_of_voe_channels; ++i) {
- // TODO(ajm): In the case where multiple channels are using the same codec
- // rate, this path needlessly does extra conversions. We should convert once
- // and share between channels.
- PushCaptureData(voe_channels[i], audio_data, 16, sample_rate,
- number_of_channels, number_of_frames);
- }
-
- // Return 0 to indicate no need to change the volume.
- return 0;
-}
-
-void VoEBaseImpl::OnData(int voe_channel, const void* audio_data,
- int bits_per_sample, int sample_rate,
- size_t number_of_channels, size_t number_of_frames) {
- PushCaptureData(voe_channel, audio_data, bits_per_sample, sample_rate,
- number_of_channels, number_of_frames);
-}
-
void VoEBaseImpl::PushCaptureData(int voe_channel, const void* audio_data,
int bits_per_sample, int sample_rate,
size_t number_of_channels,
« no previous file with comments | « webrtc/voice_engine/voe_base_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698