]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
Added the "HermesLite-II audio codec" state to the props file.
authorc vw <dl1ycf@darc.de>
Thu, 21 Jul 2022 13:43:04 +0000 (15:43 +0200)
committerc vw <dl1ycf@darc.de>
Thu, 21 Jul 2022 13:43:04 +0000 (15:43 +0200)
radio.c

diff --git a/radio.c b/radio.c
index 9ce3da5b1cf85d791858673e7a9b2b114bc001ce..90ea0c07cc77758f33dd47295f95fae2372583c7 100644 (file)
--- a/radio.c
+++ b/radio.c
@@ -2112,6 +2112,8 @@ g_print("radioRestoreState: %s\n",property_path);
     if(value) atlas_mic_source=atoi(value);
     value=getProperty("atlas_janus");
     if(value) atlas_janus=atoi(value);
+    value=getProperty("hl2_audio_codec");
+    if(value) hl2_audio_codec=atoi(value);
     value=getProperty("tx_out_of_band");
     if(value) tx_out_of_band=atoi(value);
     value=getProperty("filter_board");
@@ -2483,6 +2485,8 @@ g_print("radioSaveState: %s\n",property_path);
     setProperty("atlas_mic_source",value);
     sprintf(value,"%d",atlas_janus);
     setProperty("atlas_janus",value);
+    sprintf(value,"%d",hl2_audio_codec);
+    setProperty("hl2_audio_codec",value);
     sprintf(value,"%d",filter_board);
     setProperty("filter_board",value);
     sprintf(value,"%d",tx_out_of_band);