From 93ccf11fc506b95221ce0c5eddaed9e0e6c8b3b5 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Tue, 8 Aug 2023 13:47:08 +1000 Subject: Investigate and improve core pinning for resampler --- src/audio/sink_mixer.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/audio/sink_mixer.cpp') diff --git a/src/audio/sink_mixer.cpp b/src/audio/sink_mixer.cpp index 5a5a8616..6c72c8b0 100644 --- a/src/audio/sink_mixer.cpp +++ b/src/audio/sink_mixer.cpp @@ -38,7 +38,10 @@ SinkMixer::SinkMixer(StreamBufferHandle_t dest) input_stream_.reset(new RawStream(kSampleBufferLength)); resampled_stream_.reset(new RawStream(kSampleBufferLength)); - tasks::StartPersistent(1, [&]() { Main(); }); + // Pin to CORE0 because we need the FPU. + // FIXME: A fixed point implementation could run freely on either core, + // which should lead to a big performance increase. + tasks::StartPersistent(0, [&]() { Main(); }); } SinkMixer::~SinkMixer() { -- cgit v1.2.3