summaryrefslogtreecommitdiff
path: root/common_audio/wav_header.h
AgeCommit message (Collapse)Author
2014-11-03Restore the void return type on WriteWavHeader.andrew@webrtc.org
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
2014-10-31Add a WavReader counterpart to WavWriter.andrew@webrtc.org
Don't bother with a C interface as we currently have no need to call this from C code. The first use will be in the audioproc tool. R=kwiberg@webrtc.org Review URL: https://webrtc-codereview.appspot.com/30829004 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@7585 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-08-20New utility class for easy debug dumping to WAV fileskwiberg@webrtc.org
There are currently a number of places in the code where we dump audio data in various stages of processing for debug purposes. Currently these all write raw, uncompressed PCM files, which isn't supported by the most common audio players, and requires the user to supply metadata such as sample rate, sample size and endianness, etc. This patch adds a simple class that makes it easy to write WAV files instead. WAV files still contain the same uncompressed PCM data, but they have a small header that contains all the requisite metadata, and are supported by virtually all audio players. Since some of the debug code that will be writing WAV files is written in plain C, a C API is included as well. R=andrew@webrtc.org, bjornv@webrtc.org, henrike@webrtc.org, tommi@webrtc.org Review URL: https://webrtc-codereview.appspot.com/16809004 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@6932 4adac7df-926f-26a2-2b94-8c16560cd09d