Skip to content

Commit

Permalink
AudioServer broken wav playback
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Nov 1, 2023
1 parent 81428c8 commit 5f27372
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/AudioHttp/AudioServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,12 @@ class AudioEncoderServer : public AudioServer {

virtual void sendReplyContent() {
TRACED();
// restart encoder
if (encoder){
encoder->end();
encoder->begin();
}

if (callback!=nullptr){
//encoded_stream.begin(out_ptr(), encoder);
encoded_stream.setOutput(out_ptr());
Expand Down

0 comments on commit 5f27372

Please sign in to comment.