Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Unified Diff: webrtc/modules/audio_processing/test/conversational_speech/wavreader_interface.h

Issue 2774423005: Conversational Speech tool, WavReaderAdaptor and unit test (Closed)
Patch Set: BUILD deps fixed Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/modules/audio_processing/test/conversational_speech/wavreader_factory.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_processing/test/conversational_speech/wavreader_interface.h
diff --git a/webrtc/modules/audio_processing/test/conversational_speech/wavreader_interface.h b/webrtc/modules/audio_processing/test/conversational_speech/wavreader_interface.h
index 0c99591788ef6c09fa0a88cdaf2519c1af4116f6..57342b4d1f537e572ece0bf87d2ea484c7bf1cd0 100644
--- a/webrtc/modules/audio_processing/test/conversational_speech/wavreader_interface.h
+++ b/webrtc/modules/audio_processing/test/conversational_speech/wavreader_interface.h
@@ -13,6 +13,7 @@
#include <stddef.h>
+#include "webrtc/base/array_view.h"
#include "webrtc/typedefs.h"
namespace webrtc {
@@ -24,13 +25,13 @@ class WavReaderInterface {
virtual ~WavReaderInterface() = default;
// Returns the number of samples read.
- virtual size_t ReadFloatSamples(size_t num_samples, float* samples) = 0;
- virtual size_t ReadInt16Samples(size_t num_samples, int16_t* samples) = 0;
+ virtual size_t ReadFloatSamples(rtc::ArrayView<float> samples) = 0;
+ virtual size_t ReadInt16Samples(rtc::ArrayView<int16_t> samples) = 0;
// Getters.
- virtual int sample_rate() const = 0;
- virtual size_t num_channels() const = 0;
- virtual size_t num_samples() const = 0;
+ virtual int SampleRate() const = 0;
+ virtual size_t NumChannels() const = 0;
+ virtual size_t NumSamples() const = 0;
};
} // namespace conversational_speech
« no previous file with comments | « webrtc/modules/audio_processing/test/conversational_speech/wavreader_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698