From 054455dcb5e0caffe8f49a1aaa851e58f0db3e77 Mon Sep 17 00:00:00 2001 From: joba-1 <32450554+joba-1@users.noreply.github.com> Date: Fri, 17 Nov 2023 04:02:23 +0100 Subject: [PATCH] save AudioServer.begin() converter parameter (#1058) --- src/AudioHttp/AudioServer.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/AudioHttp/AudioServer.h b/src/AudioHttp/AudioServer.h index e83b2d2546..f281a855bf 100644 --- a/src/AudioHttp/AudioServer.h +++ b/src/AudioHttp/AudioServer.h @@ -299,6 +299,7 @@ class AudioEncoderServer : public AudioServer { audio_info.sample_rate = sample_rate; audio_info.channels = channels; audio_info.bits_per_sample = bits_per_sample; + this->converter_ptr = converter; encoder->setAudioInfo(audio_info); //encoded_stream.begin(&client_obj, encoder); encoded_stream.setInput(&client_obj); @@ -318,6 +319,7 @@ class AudioEncoderServer : public AudioServer { TRACED(); this->in = ∈ this->audio_info = info; + this->converter_ptr = converter; encoder->setAudioInfo(audio_info); //encoded_stream.begin(&client_obj, encoder); encoded_stream.setInput(&client_obj);