ensure AMBE array is initialized before encoding

pull/2/head
firealarmss 11 months ago
parent 64682a5f0a
commit 69a2f4b9ce

@ -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);
}

Loading…
Cancel
Save

Powered by TurnKey Linux.