| Index: webrtc/common_audio/wav_header.h
|
| diff --git a/webrtc/common_audio/wav_header.h b/webrtc/common_audio/wav_header.h
|
| index 1a0fd7c81dab3bf00be47088b6e48c70358d04ca..684430694199643668b9c2c64656f82a4f836e5b 100644
|
| --- a/webrtc/common_audio/wav_header.h
|
| +++ b/webrtc/common_audio/wav_header.h
|
| @@ -32,32 +32,32 @@ enum WavFormat {
|
| };
|
|
|
| // Return true if the given parameters will make a well-formed WAV header.
|
| -bool CheckWavParameters(int num_channels,
|
| +bool CheckWavParameters(size_t num_channels,
|
| int sample_rate,
|
| WavFormat format,
|
| - int bytes_per_sample,
|
| - uint32_t num_samples);
|
| + size_t bytes_per_sample,
|
| + size_t num_samples);
|
|
|
| // 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. CHECKs the input parameters for validity.
|
| void WriteWavHeader(uint8_t* buf,
|
| - int num_channels,
|
| + size_t num_channels,
|
| int sample_rate,
|
| WavFormat format,
|
| - int bytes_per_sample,
|
| - uint32_t num_samples);
|
| + size_t bytes_per_sample,
|
| + size_t num_samples);
|
|
|
| // Read a WAV header from an implemented ReadableWav and parse the values into
|
| // the provided output parameters. ReadableWav is used because the header can
|
| // be variably sized. Returns false if the header is invalid.
|
| bool ReadWavHeader(ReadableWav* readable,
|
| - int* num_channels,
|
| + size_t* num_channels,
|
| int* sample_rate,
|
| WavFormat* format,
|
| - int* bytes_per_sample,
|
| - uint32_t* num_samples);
|
| + size_t* bytes_per_sample,
|
| + size_t* num_samples);
|
|
|
| } // namespace webrtc
|
|
|
|
|