Changed order of events when synthesizing a call.

This is needed when synthesizing a call based on
48 kHz audio files as otherwise an error is
generated about the wrong sample rate is generated.
That error is in turned caused by the sample rate
being changed from the default 16 kHz
at the first Capture API call event.

BUG=

Review URL: https://codereview.webrtc.org/1698243003

Cr-Commit-Position: refs/heads/master@{#11635}
This commit is contained in:
peah 2016-02-16 07:26:21 -08:00 committed by Commit bot
parent 0453ef857f
commit 58cf5f14ec

View File

@ -840,11 +840,7 @@ void void_main(int argc, char* argv[]) {
if (far_file == NULL) {
event = kCaptureEvent;
} else {
if (event == kRenderEvent) {
event = kCaptureEvent;
} else {
event = kRenderEvent;
}
event = (event == kCaptureEvent) ? kRenderEvent : kCaptureEvent;
}
} else {
read_count = fread(&event, sizeof(event), 1, event_file);