@@ -120,7 +120,6 @@ int demod_init (struct audio_s *pa)
120
120
* This can be increased by:
121
121
* Multiple frequencies.
122
122
* Multiple letters (not sure if I will continue this).
123
- * New interleaved decoders.
124
123
*
125
124
* num_slicers is set to max by the "+" option.
126
125
*/
@@ -313,48 +312,6 @@ int demod_init (struct audio_s *pa)
313
312
314
313
save_audio_config_p -> achan [chan ].num_subchan = num_letters ;
315
314
316
- /*
317
- * Quick hack with special case for another experiment.
318
- * Do this in a more general way if it turns out to be useful.
319
- */
320
- save_audio_config_p -> achan [chan ].interleave = 1 ;
321
- if (strcasecmp (save_audio_config_p -> achan [chan ].profiles , "EE" ) == 0 ) {
322
- save_audio_config_p -> achan [chan ].interleave = 2 ;
323
- save_audio_config_p -> achan [chan ].decimate = 1 ;
324
- }
325
- else if (strcasecmp (save_audio_config_p -> achan [chan ].profiles , "EEE" ) == 0 ) {
326
- save_audio_config_p -> achan [chan ].interleave = 3 ;
327
- save_audio_config_p -> achan [chan ].decimate = 1 ;
328
- }
329
- else if (strcasecmp (save_audio_config_p -> achan [chan ].profiles , "EEEE" ) == 0 ) {
330
- save_audio_config_p -> achan [chan ].interleave = 4 ;
331
- save_audio_config_p -> achan [chan ].decimate = 1 ;
332
- }
333
- else if (strcasecmp (save_audio_config_p -> achan [chan ].profiles , "EEEEE" ) == 0 ) {
334
- save_audio_config_p -> achan [chan ].interleave = 5 ;
335
- save_audio_config_p -> achan [chan ].decimate = 1 ;
336
- }
337
- else if (strcasecmp (save_audio_config_p -> achan [chan ].profiles , "GG" ) == 0 ) {
338
- save_audio_config_p -> achan [chan ].interleave = 2 ;
339
- save_audio_config_p -> achan [chan ].decimate = 1 ;
340
- }
341
- else if (strcasecmp (save_audio_config_p -> achan [chan ].profiles , "GGG" ) == 0 ) {
342
- save_audio_config_p -> achan [chan ].interleave = 3 ;
343
- save_audio_config_p -> achan [chan ].decimate = 1 ;
344
- }
345
- else if (strcasecmp (save_audio_config_p -> achan [chan ].profiles , "GGG+" ) == 0 ) {
346
- save_audio_config_p -> achan [chan ].interleave = 3 ;
347
- save_audio_config_p -> achan [chan ].decimate = 1 ;
348
- }
349
- else if (strcasecmp (save_audio_config_p -> achan [chan ].profiles , "GGGG" ) == 0 ) {
350
- save_audio_config_p -> achan [chan ].interleave = 4 ;
351
- save_audio_config_p -> achan [chan ].decimate = 1 ;
352
- }
353
- else if (strcasecmp (save_audio_config_p -> achan [chan ].profiles , "GGGGG" ) == 0 ) {
354
- save_audio_config_p -> achan [chan ].interleave = 5 ;
355
- save_audio_config_p -> achan [chan ].decimate = 1 ;
356
- }
357
-
358
315
if (save_audio_config_p -> achan [chan ].num_subchan != num_letters ) {
359
316
text_color_set (DW_COLOR_ERROR );
360
317
dw_printf ("INTERNAL ERROR, %s:%d, chan=%d, num_subchan(%d) != strlen(\"%s\")\n" ,
@@ -383,7 +340,7 @@ int demod_init (struct audio_s *pa)
383
340
dw_printf (" %d.%d: %c %d & %d\n" , chan , d , profile , mark , space );
384
341
}
385
342
386
- demod_afsk_init (save_audio_config_p -> adev [ACHAN2ADEV (chan )].samples_per_sec / ( save_audio_config_p -> achan [chan ].decimate * save_audio_config_p -> achan [ chan ]. interleave ) ,
343
+ demod_afsk_init (save_audio_config_p -> adev [ACHAN2ADEV (chan )].samples_per_sec / save_audio_config_p -> achan [chan ].decimate ,
387
344
save_audio_config_p -> achan [chan ].baud ,
388
345
mark ,
389
346
space ,
0 commit comments