Skip to content

Commit e912543

Browse files
committed
Fixed AudioProcessing native ProcessReverseStream function call #46
1 parent 52b6c12 commit e912543

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webrtc-jni/src/main/cpp/src/JNI_AudioProcessing.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,11 @@ JNIEXPORT jint JNICALL Java_dev_onvoid_webrtc_media_audio_AudioProcessing_proces
156156

157157
srcConfig.set_num_channels(dstNumChannels);
158158

159-
result = apm->ProcessStream(dstFrame, srcConfig, dstConfig, dstFrame);
159+
result = apm->ProcessReverseStream(dstFrame, srcConfig, dstConfig, dstFrame);
160160
}
161161
else {
162162
// Will also down-mix if required, e.g. from stereo to mono.
163-
result = apm->ProcessStream(srcFrame, srcConfig, dstConfig, dstFrame);
163+
result = apm->ProcessReverseStream(srcFrame, srcConfig, dstConfig, dstFrame);
164164
}
165165

166166
if (isDstCopy == JNI_TRUE) {

0 commit comments

Comments
 (0)