Skip to content

Commit

Permalink
save AudioServer.begin() converter parameter (#1058)
Browse files Browse the repository at this point in the history
  • Loading branch information
joba-1 authored Nov 17, 2023
1 parent 0d82acd commit 054455d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/AudioHttp/AudioServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 054455d

Please sign in to comment.