Skip to content

Commit

Permalink
audioproc: Now also writes to output file in simulation mode
Browse files Browse the repository at this point in the history
After changing to use wav as default file format no output was written in simulation mode.

BUG=3359
TESTED=locally
R=aluebs@webrtc.org, kwiberg@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/25639004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@7286 4adac7df-926f-26a2-2b94-8c16560cd09d
  • Loading branch information
bjornv@webrtc.org committed Sep 24, 2014
1 parent 7ee24a7 commit 634c926
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion webrtc/modules/audio_processing/test/process_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ void void_main(int argc, char* argv[]) {
near_frame.samples_per_channel_ = samples_per_channel;

if (!raw_output) {
// The WAV file needs to be reset every time, because it cant change
// The WAV file needs to be reset every time, because it can't change
// it's sample rate or number of channels.
output_wav_file.reset(new WavFile(out_filename + ".wav",
sample_rate_hz,
Expand Down Expand Up @@ -1028,6 +1028,11 @@ void void_main(int argc, char* argv[]) {
if (raw_output && !output_raw_file) {
output_raw_file.reset(new RawFile(out_filename + ".pcm"));
}
if (!raw_output && !output_wav_file) {
output_wav_file.reset(new WavFile(out_filename + ".wav",
sample_rate_hz,
num_capture_output_channels));
}
WriteIntData(near_frame.data_,
size,
output_wav_file.get(),
Expand Down

0 comments on commit 634c926

Please sign in to comment.