#define ALEX_9_5MHZ_HPF 0x00000010
#define ALEX_6_5MHZ_HPF 0x00000020
#define ALEX_1_5MHZ_HPF 0x00000040
-#define ALEX_BYPASS_HPF 0x00000800
+#define ALEX_BYPASS_HPF 0x00001000
#define ALEX_6M_PREAMP 0x00000008
#include "new_menu.h"
#include "audio_menu.h"
#include "audio.h"
+#include "channel.h"
#include "radio.h"
+#include "wdsp.h"
static GtkWidget *parent_window=NULL;
return TRUE;
}
+static void binaural_cb(GtkWidget *widget, gpointer data) {
+ binaural=gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget));
+ SetRXAPanelBinaural(CHANNEL_RX0, binaural);
+}
+
static void micboost_cb(GtkWidget *widget, gpointer data) {
mic_boost=mic_boost==1?0:1;
}
g_signal_connect (close_b, "pressed", G_CALLBACK(close_cb), NULL);
gtk_grid_attach(GTK_GRID(grid),close_b,0,0,1,1);
+ GtkWidget *binaural_b=gtk_check_button_new_with_label("Binaural");
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (binaural_b), binaural);
+ gtk_grid_attach(GTK_GRID(grid),binaural_b,1,0,1,1);
+ g_signal_connect(binaural_b,"toggled",G_CALLBACK(binaural_cb),NULL);
+
int row=0;
if(protocol==ORIGINAL_PROTOCOL || protocol==NEW_PROTOCOL) {
} else {
buffer[1401]=band->OCrx;
}
-// alex HPF filters
+
+
+ long filters=0x00000000;
+
+ if(isTransmitting()) {
+ filters=0x08000000;
+ }
+
+// Alex RX HPF filters
/*
if (frequency < 1800000) HPF <= 6'b100000; // bypass
else if (frequency < 6500000) HPF <= 6'b010000; // 1.5MHz HPF
else HPF <= 6'b000010; // 20MHz HPF
*/
-
-
- long filters=0x00000000;
-
- if(isTransmitting()) {
- filters=0x08000000;
- }
-
-// set HPF
if(ddsFrequency<1800000L) {
filters|=ALEX_BYPASS_HPF;
} else if(ddsFrequency<6500000L) {
} else {
filters|=ALEX_20MHZ_HPF;
}
-// alex LPF filters
+
+// Alex TX LPF filters
/*
if (frequency > 32000000) LPF <= 7'b0010000; // > 10m so use 6m LPF^M
else if (frequency > 22000000) LPF <= 7'b0100000; // > 15m so use 12/10m LPF^M
double volume=0.2;
double mic_gain=0.0;
+int binaural=0;
int rx_dither=0;
int rx_random=0;
value=getProperty("vox_hang");
if(value) vox_hang=atof(value);
+ value=getProperty("binaural");
+ if(value) binaural=atoi(value);
+
bandRestoreState();
sem_post(&property_sem);
sprintf(value,"%f",vox_hang);
setProperty("vox_hang",value);
+ sprintf(value,"%d",binaural);
+ setProperty("binaural",value);
+
bandSaveState();
saveProperties(property_path);
extern double volume;
extern double mic_gain;
+extern int binaural;
extern int agc;
extern double agc_gain;
extern double agc_slope;
SetRXASNBARun(rx, snb);
SetRXAPanelGain1(rx, volume);
+ SetRXAPanelBinaural(rx, binaural);
if(enable_rx_equalizer) {
SetRXAGrphEQ(rx, rx_equalizer);