From 50a73a380d54715fb9831b5e6aced7db1748843d Mon Sep 17 00:00:00 2001 From: Ryzerth Date: Sat, 31 Oct 2020 15:07:49 +0100 Subject: [PATCH] more fixes --- root_dev/config.json | 6 +++--- rtl_tcp_source/src/rtltcp_client.h | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/root_dev/config.json b/root_dev/config.json index e84b7939..4e002330 100644 --- a/root_dev/config.json +++ b/root_dev/config.json @@ -3,7 +3,7 @@ "Radio": { "device": "default", "sampleRate": 48000.0, - "volume": 0.1666666716337204 + "volume": 0.4407407343387604 }, "Radio 1": { "device": "Speakers (Realtek High Definition Audio)", @@ -19,7 +19,7 @@ "bandPlan": "General", "bandPlanEnabled": true, "fftHeight": 298, - "frequency": 77500, + "frequency": 4620379, "max": 0.0, "maximized": true, "menuOrder": [ @@ -32,7 +32,7 @@ "Display" ], "menuWidth": 300, - "min": -53.676475524902344, + "min": -100.0, "showWaterfall": true, "source": "", "sourceSettings": {}, diff --git a/rtl_tcp_source/src/rtltcp_client.h b/rtl_tcp_source/src/rtltcp_client.h index 5ffc771e..c00057e2 100644 --- a/rtl_tcp_source/src/rtltcp_client.h +++ b/rtl_tcp_source/src/rtltcp_client.h @@ -54,6 +54,7 @@ public: int iResult = getaddrinfo(host, buf, &hints, &result); if (iResult != 0) { // TODO: log error + printf("A"); WSACleanup(); return false; } @@ -63,6 +64,7 @@ public: if (sock == INVALID_SOCKET) { // TODO: log error + printf("B"); freeaddrinfo(result); WSACleanup(); return false; @@ -70,6 +72,7 @@ public: iResult = connect(sock, ptr->ai_addr, (int)ptr->ai_addrlen); if (iResult == SOCKET_ERROR) { + printf("C"); closesocket(sock); freeaddrinfo(result); WSACleanup(); @@ -96,6 +99,8 @@ public: connected = true; + printf("Connected"); + return true; }