From 69a2f4b9ceabb78045e6ec33d1792f81e4f46e4a Mon Sep 17 00:00:00 2001 From: firealarmss Date: Sun, 23 Mar 2025 01:35:41 -0500 Subject: [PATCH] ensure AMBE array is initialized before encoding --- dvmconsole/MainWindow.DMR.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dvmconsole/MainWindow.DMR.cs b/dvmconsole/MainWindow.DMR.cs index 5b81ada..b278e73 100644 --- a/dvmconsole/MainWindow.DMR.cs +++ b/dvmconsole/MainWindow.DMR.cs @@ -146,6 +146,8 @@ namespace dvmconsole if (channel.Encoder == null) channel.Encoder = new MBEEncoder(MBE_MODE.DMR_AMBE); + ambe = new byte[FneSystemBase.AMBE_BUF_LEN]; + channel.Encoder.encode(samples, ambe); }