From 1393067264b52a87d99227262179028daa479790 Mon Sep 17 00:00:00 2001 From: David Beck Date: Sun, 19 May 2024 14:30:24 -0700 Subject: [PATCH] fix(resample): function name changed in dependent package in v0.9.8 the Resample Package was refactored, this resulted in the `setStream` being renamed `setOutput`. This took a good while to track down because it wasn't clear why the `override` was throwing an error on the `virtual` `void`. This brings the code back into a functional state. --- src/api/SnapOutput.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/SnapOutput.h b/src/api/SnapOutput.h index e5d87b6..085195c 100644 --- a/src/api/SnapOutput.h +++ b/src/api/SnapOutput.h @@ -88,7 +88,7 @@ class SnapOutput : public AudioInfoSupport { /// Defines the audio output chain to the final output void setOutput(AudioOutput &output) { this->out = &output; // final output - resample.setStream(output); + resample.setOutput(output); vol_stream.setStream(resample); // adjust volume decoder_stream.setStream(&vol_stream); // decode to pcm } @@ -266,4 +266,4 @@ class SnapOutput : public AudioInfoSupport { } }; -} \ No newline at end of file +}