mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-13 05:40:42 +01:00
Remove unused WavFile::FormatAsString method.
This lets us remove stringstreams from common_audio/ Bug: webrtc:8982 Change-Id: I450d87dc50090e838edabc7c1db645aca9c1b0f7 Reviewed-on: https://webrtc-review.googlesource.com/82163 Commit-Queue: Jonas Olsson <jonasolsson@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23609}
This commit is contained in:
parent
671cae2c7c
commit
4e952a3f44
2 changed files with 0 additions and 12 deletions
|
@ -13,7 +13,6 @@
|
|||
#include <algorithm>
|
||||
#include <cstdio>
|
||||
#include <limits>
|
||||
#include <sstream>
|
||||
|
||||
#include "common_audio/include/audio_util.h"
|
||||
#include "common_audio/wav_header.h"
|
||||
|
@ -39,14 +38,6 @@ class ReadableWavFile : public ReadableWav {
|
|||
FILE* file_;
|
||||
};
|
||||
|
||||
std::string WavFile::FormatAsString() const {
|
||||
std::ostringstream s;
|
||||
s << "Sample rate: " << sample_rate() << " Hz, Channels: " << num_channels()
|
||||
<< ", Duration: "
|
||||
<< (1.f * num_samples()) / (num_channels() * sample_rate()) << " s";
|
||||
return s.str();
|
||||
}
|
||||
|
||||
WavReader::WavReader(const std::string& filename)
|
||||
: WavReader(rtc::OpenPlatformFileReadOnly(filename)) {}
|
||||
|
||||
|
|
|
@ -30,9 +30,6 @@ class WavFile {
|
|||
virtual int sample_rate() const = 0;
|
||||
virtual size_t num_channels() const = 0;
|
||||
virtual size_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
|
||||
|
|
Loading…
Reference in a new issue