mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-03-26 01:35:29 +01:00
more fixes
This commit is contained in:
parent
e62042d26a
commit
50a73a380d
@ -3,7 +3,7 @@
|
|||||||
"Radio": {
|
"Radio": {
|
||||||
"device": "default",
|
"device": "default",
|
||||||
"sampleRate": 48000.0,
|
"sampleRate": 48000.0,
|
||||||
"volume": 0.1666666716337204
|
"volume": 0.4407407343387604
|
||||||
},
|
},
|
||||||
"Radio 1": {
|
"Radio 1": {
|
||||||
"device": "Speakers (Realtek High Definition Audio)",
|
"device": "Speakers (Realtek High Definition Audio)",
|
||||||
@ -19,7 +19,7 @@
|
|||||||
"bandPlan": "General",
|
"bandPlan": "General",
|
||||||
"bandPlanEnabled": true,
|
"bandPlanEnabled": true,
|
||||||
"fftHeight": 298,
|
"fftHeight": 298,
|
||||||
"frequency": 77500,
|
"frequency": 4620379,
|
||||||
"max": 0.0,
|
"max": 0.0,
|
||||||
"maximized": true,
|
"maximized": true,
|
||||||
"menuOrder": [
|
"menuOrder": [
|
||||||
@ -32,7 +32,7 @@
|
|||||||
"Display"
|
"Display"
|
||||||
],
|
],
|
||||||
"menuWidth": 300,
|
"menuWidth": 300,
|
||||||
"min": -53.676475524902344,
|
"min": -100.0,
|
||||||
"showWaterfall": true,
|
"showWaterfall": true,
|
||||||
"source": "",
|
"source": "",
|
||||||
"sourceSettings": {},
|
"sourceSettings": {},
|
||||||
|
@ -54,6 +54,7 @@ public:
|
|||||||
int iResult = getaddrinfo(host, buf, &hints, &result);
|
int iResult = getaddrinfo(host, buf, &hints, &result);
|
||||||
if (iResult != 0) {
|
if (iResult != 0) {
|
||||||
// TODO: log error
|
// TODO: log error
|
||||||
|
printf("A");
|
||||||
WSACleanup();
|
WSACleanup();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -63,6 +64,7 @@ public:
|
|||||||
|
|
||||||
if (sock == INVALID_SOCKET) {
|
if (sock == INVALID_SOCKET) {
|
||||||
// TODO: log error
|
// TODO: log error
|
||||||
|
printf("B");
|
||||||
freeaddrinfo(result);
|
freeaddrinfo(result);
|
||||||
WSACleanup();
|
WSACleanup();
|
||||||
return false;
|
return false;
|
||||||
@ -70,6 +72,7 @@ public:
|
|||||||
|
|
||||||
iResult = connect(sock, ptr->ai_addr, (int)ptr->ai_addrlen);
|
iResult = connect(sock, ptr->ai_addr, (int)ptr->ai_addrlen);
|
||||||
if (iResult == SOCKET_ERROR) {
|
if (iResult == SOCKET_ERROR) {
|
||||||
|
printf("C");
|
||||||
closesocket(sock);
|
closesocket(sock);
|
||||||
freeaddrinfo(result);
|
freeaddrinfo(result);
|
||||||
WSACleanup();
|
WSACleanup();
|
||||||
@ -96,6 +99,8 @@ public:
|
|||||||
|
|
||||||
connected = true;
|
connected = true;
|
||||||
|
|
||||||
|
printf("Connected");
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user