Skip to content
Snippets Groups Projects
Commit 60e44383 authored by Mohamed Chibani's avatar Mohamed Chibani
Browse files

echo-cancel: fix compilation warnings

Change-Id: I9584598f74faff61f61613985ac5b6dbb9a4c194
parent c71db267
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,7 @@ struct WebRTCEchoCanceller::WebRTCAPMImpl
APMPtr apm;
webrtc::StreamConfig streamConfig;
WebRTCAPMImpl(AudioFormat format, unsigned frameSize)
WebRTCAPMImpl(AudioFormat format, unsigned)
: streamConfig(format.sample_rate, format.nb_channels)
{
webrtc::ProcessingConfig pconfig;
......@@ -128,7 +128,7 @@ WebRTCEchoCanceller::getProcessed()
frameSize_,
format_.nb_channels);
std::vector<float*> playData {format_.nb_channels};
for (auto c = 0; c < format_.nb_channels; ++c) {
for (unsigned c = 0; c < format_.nb_channels; ++c) {
playData[c] = fPlaybackBuffer_[c].data();
iPlaybackBuffer_.channelToFloat(playData[c], c);
}
......@@ -141,7 +141,7 @@ WebRTCEchoCanceller::getProcessed()
frameSize_,
format_.nb_channels);
std::vector<float*> recData {format_.nb_channels};
for (auto c = 0; c < format_.nb_channels; ++c) {
for (unsigned c = 0; c < format_.nb_channels; ++c) {
recData[c] = fRecordBuffer_[c].data();
iRecordBuffer_.channelToFloat(recData[c], c);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment