diff options
author | andrew@webrtc.org <andrew@webrtc.org> | 2014-11-03 18:20:06 +0000 |
---|---|---|
committer | andrew@webrtc.org <andrew@webrtc.org> | 2014-11-03 18:20:06 +0000 |
commit | 1c755a6308e054fd1c81cea8082515b3ff8639a2 (patch) | |
tree | ac915ca344ca75e07683b262007936fb3f5bd712 /common_audio/wav_header.h | |
parent | 7e2ad876db743f9c20671750b948cac3aa1c524b (diff) | |
download | webrtc-1c755a6308e054fd1c81cea8082515b3ff8639a2.tar.gz |
Restore the void return type on WriteWavHeader.
Karl pointed out that the user can check the validity of the input
parameters with CheckWavParameters prior to calling.
TBR=kwiberg
Review URL: https://webrtc-codereview.appspot.com/23339004
git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@7597 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'common_audio/wav_header.h')
-rw-r--r-- | common_audio/wav_header.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common_audio/wav_header.h b/common_audio/wav_header.h index 0901f970..37f78a6f 100644 --- a/common_audio/wav_header.h +++ b/common_audio/wav_header.h @@ -34,8 +34,8 @@ bool CheckWavParameters(int num_channels, // Write a kWavHeaderSize bytes long WAV header to buf. The payload that // follows the header is supposed to have the specified number of interleaved // channels and contain the specified total number of samples of the specified -// type. Returns false if any of the input parameters are invalid. -bool WriteWavHeader(uint8_t* buf, +// type. CHECKs the input parameters for validity. +void WriteWavHeader(uint8_t* buf, int num_channels, int sample_rate, WavFormat format, |