@@ -618,6 +618,7 @@ int demod_init (struct audio_s *pa)
618618
619619 case MODEM_BASEBAND :
620620 case MODEM_SCRAMBLE :
621+ case MODEM_AIS :
621622 default : /* Not AFSK */
622623 {
623624
@@ -694,9 +695,10 @@ int demod_init (struct audio_s *pa)
694695#endif
695696
696697 text_color_set (DW_COLOR_DEBUG );
697- dw_printf ("Channel %d: %d baud, K9NG/G3RUH , %s, %d sample rate x %d" ,
698+ dw_printf ("Channel %d: %d baud, %s , %s, %d sample rate x %d" ,
698699 chan ,
699700 save_audio_config_p -> achan [chan ].baud ,
701+ save_audio_config_p -> achan [chan ].modem_type == MODEM_AIS ? "AIS" : "K9NG/G3RUH" ,
700702 save_audio_config_p -> achan [chan ].profiles ,
701703 save_audio_config_p -> adev [ACHAN2ADEV (chan )].samples_per_sec ,
702704 save_audio_config_p -> achan [chan ].upsample );
@@ -745,7 +747,9 @@ int demod_init (struct audio_s *pa)
745747 dw_printf ("This is a suitable ratio for good performance.\n" );
746748 }
747749
748- demod_9600_init (save_audio_config_p -> achan [chan ].upsample * save_audio_config_p -> adev [ACHAN2ADEV (chan )].samples_per_sec , save_audio_config_p -> achan [chan ].baud , D );
750+ demod_9600_init (save_audio_config_p -> achan [chan ].modem_type ,
751+ save_audio_config_p -> achan [chan ].upsample * save_audio_config_p -> adev [ACHAN2ADEV (chan )].samples_per_sec ,
752+ save_audio_config_p -> achan [chan ].baud , D );
749753
750754 if (strchr (save_audio_config_p -> achan [chan ].profiles , '+' ) != NULL ) {
751755
@@ -970,6 +974,7 @@ void demod_process_sample (int chan, int subchan, int sam)
970974
971975 case MODEM_BASEBAND :
972976 case MODEM_SCRAMBLE :
977+ case MODEM_AIS :
973978 default :
974979
975980 if (zerostuff ) {
0 commit comments