Index: webrtc/modules/audio_processing/test/conversational_speech/wavreader_adaptor.h |
diff --git a/webrtc/modules/audio_processing/test/conversational_speech/wavreader_adaptor.h b/webrtc/modules/audio_processing/test/conversational_speech/wavreader_adaptor.h |
index 54894934dbc5f4b5fd84d88afeff680a649810a8..e2ccedb16d5fa036aeb15fb52b90b7eb03d393d3 100644 |
--- a/webrtc/modules/audio_processing/test/conversational_speech/wavreader_adaptor.h |
+++ b/webrtc/modules/audio_processing/test/conversational_speech/wavreader_adaptor.h |
@@ -13,27 +13,15 @@ |
#include "webrtc/modules/audio_processing/test/conversational_speech/wavreader_interface.h" |
-#include <cstddef> |
+#include <memory> |
#include <string> |
-#include "webrtc/typedefs.h" |
- |
namespace webrtc { |
namespace test { |
namespace conversational_speech { |
-class WavReaderAdaptor : public WavReaderInterface { |
- public: |
- explicit WavReaderAdaptor(const std::string& filepath); |
- ~WavReaderAdaptor() override; |
- |
- size_t ReadFloatSamples(size_t num_samples, float* samples) override; |
- size_t ReadInt16Samples(size_t num_samples, int16_t* samples) override; |
- |
- int sample_rate() const override; |
- size_t num_channels() const override; |
- size_t num_samples() const override; |
-}; |
+std::unique_ptr<WavReaderInterface> CreateWavReaderAdaptor( |
+ const std::string& filepath); |
} // namespace conversational_speech |
} // namespace test |