From 067ff7318bdf9773351213818e8db9ba36ce53d5 Mon Sep 17 00:00:00 2001 From: sh123 Date: Thu, 25 Aug 2022 20:41:26 +0300 Subject: [PATCH] Clear buffers on flush --- .../src/main/java/com/radio/codec2talkie/protocol/Freedv.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codec2talkie/src/main/java/com/radio/codec2talkie/protocol/Freedv.java b/codec2talkie/src/main/java/com/radio/codec2talkie/protocol/Freedv.java index 6bc3a1b..b70e5eb 100644 --- a/codec2talkie/src/main/java/com/radio/codec2talkie/protocol/Freedv.java +++ b/codec2talkie/src/main/java/com/radio/codec2talkie/protocol/Freedv.java @@ -170,7 +170,8 @@ public class Freedv implements Protocol { @Override public void flush() throws IOException { - // TODO, check if need to flush buffers + _speechSamples.clear(); + _dataSamples.clear(); } @Override