mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-15 02:07:24 -05:00
NCurses Menu
--NCurses Menu (no more tedious CLI options) --Save/Read Capture Bin (WIP!) --Read OP25 Capture Bin (WIP!) --Per Call WAV saving on DMR Stereo --Revampled Data Header and 1/2, 3/4 Data LRRP --Dump LRRP Data to text file, import into QGIS --Included QGIS Map File with layers set up --DMR CACH and Burst FEC --No more Port Audio or OSS...ever. --Switch to 8Khz/1Ch for most decode types due to crisper sound ---DMR Stereo remains at 24/2, will look into revampint upsampe for cleaner sound
This commit is contained in:
@@ -376,6 +376,7 @@ static int digitize (dsd_opts* opts, dsd_state* state, int symbol)
|
||||
*state->dmr_payload_p = dibit;
|
||||
state->dmr_payload_p++;
|
||||
//dmr buffer end
|
||||
|
||||
return dibit;
|
||||
}
|
||||
}
|
||||
@@ -386,6 +387,19 @@ get_dibit_and_analog_signal (dsd_opts* opts, dsd_state* state, int* out_analog_s
|
||||
int symbol;
|
||||
int dibit;
|
||||
|
||||
// if (opts->audio_in_type == 4 && opts->frame_provoice == 1) //
|
||||
// {
|
||||
// //skip processing symbol as dibit and use it as is
|
||||
// if (state->symbolc == 0)
|
||||
// {
|
||||
// symbol = 1;
|
||||
// }
|
||||
// if (state->symbolc == 1)
|
||||
// {
|
||||
// symbol = 3;
|
||||
// }
|
||||
// }
|
||||
|
||||
#ifdef TRACE_DSD
|
||||
unsigned int l, r;
|
||||
#endif
|
||||
@@ -402,7 +416,7 @@ get_dibit_and_analog_signal (dsd_opts* opts, dsd_state* state, int* out_analog_s
|
||||
r = state->debug_sample_index;
|
||||
#endif
|
||||
|
||||
//
|
||||
|
||||
state->sbuf[state->sidx] = symbol;
|
||||
|
||||
if (out_analog_signal != NULL)
|
||||
@@ -414,6 +428,21 @@ get_dibit_and_analog_signal (dsd_opts* opts, dsd_state* state, int* out_analog_s
|
||||
|
||||
dibit = digitize (opts, state, symbol);
|
||||
|
||||
//don't think this is quite right still, but should work, don't know why it doesn't
|
||||
if (opts->audio_in_type == 4 && opts->frame_provoice == 1) //
|
||||
{
|
||||
//skip processing symbol as dibit and use it as is
|
||||
dibit = state->symbolc;
|
||||
}
|
||||
|
||||
//symbol/dibit file capture/writing
|
||||
//need this bit here to capture dibits once sync starts
|
||||
if (opts->symbol_out == 1)
|
||||
{
|
||||
//fprintf (stderr, "%d", dibit);
|
||||
fputc (dibit, opts->symbol_out_f);
|
||||
}
|
||||
|
||||
#ifdef TRACE_DSD
|
||||
{
|
||||
float left, right;
|
||||
|
||||
Reference in New Issue
Block a user