MSVC fix-up

This commit is contained in:
Charles J. Cliffe
2016-01-22 20:26:22 -05:00
parent b75586119c
commit b413c8454b
4 changed files with 21 additions and 3 deletions
+4
View File
@@ -8,6 +8,10 @@
#define MIN_BANDWIDTH 500
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
class ModemKit {
public:
ModemKit() : sampleRate(0), audioSampleRate(0) {
+2 -1
View File
@@ -11,11 +11,12 @@ ModemLSB::ModemLSB() : ModemAnalog() {
// estimate required filter length and generate filter
unsigned int h_len = estimate_req_filter_len(ft,As);
float h[h_len];
float *h = (float *) malloc(h_len * sizeof(float));
liquid_firdes_kaiser(h_len,fc,As,mu,h);
ssbFilt = firfilt_crcf_create(h,h_len);
ssbShift = nco_crcf_create(LIQUID_NCO);
nco_crcf_set_frequency(ssbShift, (2.0 * M_PI) * 0.25);
free(h);
}
Modem *ModemLSB::factory() {
+2 -1
View File
@@ -11,11 +11,12 @@ ModemUSB::ModemUSB() : ModemAnalog() {
// estimate required filter length and generate filter
unsigned int h_len = estimate_req_filter_len(ft,As);
float h[h_len];
float *h = (float *) malloc(h_len * sizeof(float));
liquid_firdes_kaiser(h_len,fc,As,mu,h);
ssbFilt = firfilt_crcf_create(h,h_len);
ssbShift = nco_crcf_create(LIQUID_NCO);
nco_crcf_set_frequency(ssbShift, (2.0 * M_PI) * 0.25);
free(h);
}
Modem *ModemUSB::factory() {