Raw Signal Monitor Tweak;

This commit is contained in:
lwvmobile
2023-11-22 06:48:56 -05:00
parent 92144ee482
commit 696c9663dd

View File

@@ -267,6 +267,14 @@ getSymbol (dsd_opts * opts, dsd_state * state, int have_sync)
//reworked a bit to allow raw audio wav file saving without the monitoring poriton active
if (have_sync == 0)
{
//do an extra checkfor carrier signal so that random raw audio spurts don't play during decoding
if ( (state->carrier == 1) && ((time(NULL) - state->last_vc_sync_time) < 2))
{
memset (state->analog_out, 0, sizeof(state->analog_out));
state->analog_sample_counter = 0;
}
//sanity check to prevent an overflow
if (state->analog_sample_counter > 959)
state->analog_sample_counter = 959;