summaryrefslogtreecommitdiff
path: root/webrtc/common_audio/wav_file.h
diff options
context:
space:
mode:
Diffstat (limited to 'webrtc/common_audio/wav_file.h')
-rw-r--r--webrtc/common_audio/wav_file.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/webrtc/common_audio/wav_file.h b/webrtc/common_audio/wav_file.h
index 2eadd3f..42b0618 100644
--- a/webrtc/common_audio/wav_file.h
+++ b/webrtc/common_audio/wav_file.h
@@ -29,6 +29,9 @@ class WavFile {
virtual int sample_rate() const = 0;
virtual int num_channels() const = 0;
virtual uint32_t num_samples() const = 0;
+
+ // Returns a human-readable string containing the audio format.
+ std::string FormatAsString() const;
};
// Simple C++ class for writing 16-bit PCM WAV files. All error handling is