summaryrefslogtreecommitdiff
path: root/src/audio/resample.cpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-08-16 10:57:55 +1000
committerjacqueline <me@jacqueline.id.au>2023-08-16 10:57:55 +1000
commit4e27de21e49900963ffa61cc9c0a676bb028f992 (patch)
tree8123994d33bc2ff8b5d58a38155b53e401669ae8 /src/audio/resample.cpp
parent62dce8d9fcc139ca6dc2041c86723d19faab304f (diff)
downloadtangara-fw-4e27de21e49900963ffa61cc9c0a676bb028f992.tar.gz
clean up a bunch of obselete audio code
Diffstat (limited to 'src/audio/resample.cpp')
-rw-r--r--src/audio/resample.cpp17
1 files changed, 4 insertions, 13 deletions
diff --git a/src/audio/resample.cpp b/src/audio/resample.cpp
index bc2c7c51..a3a34ee7 100644
--- a/src/audio/resample.cpp
+++ b/src/audio/resample.cpp
@@ -4,27 +4,18 @@
* SPDX-License-Identifier: GPL-3.0-only
*/
#include "resample.hpp"
-/*
- * This file contains the implementation for a 32-bit floating point resampler.
- * It is largely based on David Bryant's ART resampler, which is BSD-licensed,
- * and available at https://github.com/dbry/audio-resampler/.
- *
- * This resampler uses windowed sinc interpolation filters, with an additional
- * lowpass filter to reduce aliasing.
- */
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
#include <algorithm>
#include <cmath>
+#include <cstdint>
+#include <cstdlib>
+#include <cstring>
#include <numeric>
#include "esp_log.h"
+#include "speex/speex_resampler.h"
#include "sample.hpp"
-#include "speex/speex_resampler.h"
-#include "stream_info.hpp"
namespace audio {