summaryrefslogtreecommitdiff
path: root/webrtc/common_audio/fir_filter_neon.h
diff options
context:
space:
mode:
Diffstat (limited to 'webrtc/common_audio/fir_filter_neon.h')
-rw-r--r--webrtc/common_audio/fir_filter_neon.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/webrtc/common_audio/fir_filter_neon.h b/webrtc/common_audio/fir_filter_neon.h
index 3aa6168..1ffefd8 100644
--- a/webrtc/common_audio/fir_filter_neon.h
+++ b/webrtc/common_audio/fir_filter_neon.h
@@ -8,12 +8,13 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#ifndef WEBRTC_COMMON_AUDIO_FIR_FILTER_NEON_H_
-#define WEBRTC_COMMON_AUDIO_FIR_FILTER_NEON_H_
+#ifndef COMMON_AUDIO_FIR_FILTER_NEON_H_
+#define COMMON_AUDIO_FIR_FILTER_NEON_H_
-#include "webrtc/base/scoped_ptr.h"
-#include "webrtc/common_audio/fir_filter.h"
-#include "webrtc/system_wrappers/include/aligned_malloc.h"
+#include <memory>
+
+#include "common_audio/fir_filter.h"
+#include "rtc_base/memory/aligned_malloc.h"
namespace webrtc {
@@ -22,16 +23,17 @@ class FIRFilterNEON : public FIRFilter {
FIRFilterNEON(const float* coefficients,
size_t coefficients_length,
size_t max_input_length);
+ ~FIRFilterNEON() override;
void Filter(const float* in, size_t length, float* out) override;
private:
size_t coefficients_length_;
size_t state_length_;
- rtc::scoped_ptr<float[], AlignedFreeDeleter> coefficients_;
- rtc::scoped_ptr<float[], AlignedFreeDeleter> state_;
+ std::unique_ptr<float[], AlignedFreeDeleter> coefficients_;
+ std::unique_ptr<float[], AlignedFreeDeleter> state_;
};
} // namespace webrtc
-#endif // WEBRTC_COMMON_AUDIO_FIR_FILTER_NEON_H_
+#endif // COMMON_AUDIO_FIR_FILTER_NEON_H_