Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /* | |
| 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | |
| 3 * | |
| 4 * Use of this source code is governed by a BSD-style license | |
| 5 * that can be found in the LICENSE file in the root of the source | |
| 6 * tree. An additional intellectual property rights grant can be found | |
| 7 * in the file PATENTS. All contributing project authors may | |
| 8 * be found in the AUTHORS file in the root of the source tree. | |
| 9 */ | |
| 10 | |
| 11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_TEST_CONVERSATIONAL_SPEECH_WAVREADER_ADA PTOR_H_ | |
| 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_TEST_CONVERSATIONAL_SPEECH_WAVREADER_ADA PTOR_H_ | |
| 13 | |
| 14 #include "webrtc/modules/audio_processing/test/conversational_speech/wavreader_i nterface.h" | |
| 15 | |
| 16 #include <stdint.h> | |
|
hlundin-webrtc
2017/03/24 13:44:07
#include "webrtc/typedefs.h"
AleBzk
2017/03/27 08:24:14
Done.
| |
| 17 #include <cstddef> | |
| 18 #include <string> | |
| 19 | |
| 20 namespace webrtc { | |
| 21 namespace test { | |
| 22 namespace conversational_speech { | |
| 23 | |
| 24 class WavReaderAdaptor : public WavReaderInterface { | |
| 25 public: | |
| 26 explicit WavReaderAdaptor(const std::string& filepath); | |
| 27 ~WavReaderAdaptor() override; | |
| 28 | |
| 29 size_t ReadSamples(size_t num_samples, float* samples) override; | |
| 30 size_t ReadSamples(size_t num_samples, int16_t* samples) override; | |
| 31 | |
| 32 int sample_rate() const override; | |
| 33 size_t num_channels() const override; | |
| 34 size_t num_samples() const override; | |
| 35 }; | |
| 36 | |
| 37 } // namespace conversational_speech | |
| 38 } // namespace test | |
| 39 } // namespace webrtc | |
| 40 | |
| 41 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_TEST_CONVERSATIONAL_SPEECH_WAVREADER_ ADAPTOR_H_ | |
| OLD | NEW |