Wykres commitów

207 Commity (772375fb9dbf7074d43a9122a36a36fba4f0707f)

Autor SHA1 Wiadomość Data
Phil Taylor 8583973ca8 Add USB audio handling to UDP server 2021-03-22 09:10:03 +00:00
Phil Taylor 03de9b0dfd Small fix for audio packet handling 2021-03-14 08:44:30 +00:00
Phil Taylor 3187651098 Revert changing hex to Qt:hex as Qt:hex not exposed in earlier Qt namespace 2021-03-13 18:56:19 +00:00
Phil Taylor 7f4be42331 Fix some compile warnings and deprecation. 2021-03-13 16:56:48 +00:00
Phil Taylor 18fe0cba2e Fixes for MacOS 2021-03-13 09:23:06 +00:00
Phil Taylor a0f4a4deeb Add audio resampler 2021-03-09 17:22:16 +00:00
Phil Taylor 5911af1717 Missing file from last commit! 2021-03-06 14:40:43 +00:00
Phil Taylor f5117fd921 Add separate mutex for udp/buffers. 2021-03-03 09:50:15 +00:00
Phil Taylor a254a937ff Allow selection of audio input and output devices for UDP Audio 2021-03-01 20:31:05 +00:00
Phil Taylor 91a60bf918 Create udpPreferences struct and remove civPort and audioPort from UI 2021-03-01 19:53:12 +00:00
Phil Taylor f82e2c9746 Second attempt to fix Linux warnings 2021-02-28 20:15:34 +00:00
Phil Taylor 844214126d Fix inevitable Linux compile warnings 2021-02-28 20:13:45 +00:00
Phil Taylor aef03a6b7e Add audio handling to UDP server 2021-02-28 20:10:07 +00:00
Phil Taylor e593e5e90a Change TX audio to use timed buffer. 2021-02-27 09:34:56 +00:00
Phil Taylor 27eb855adb Create rx audio packets with timestamp
Lots of other changes but if this works OK, I will update tx audio to use the same system.
2021-02-27 00:37:00 +00:00
Phil Taylor 6d8d1df45e Mitigate potential empty buffer crash. 2021-02-26 16:53:11 +00:00
Phil Taylor f54e7e646a Possible fix for Linux audio 2021-02-26 09:44:01 +00:00
Phil Taylor ea32c7f097 Various fixes and add watchdog in case of loss of civ or audio. 2021-02-25 17:53:01 +00:00
Phil Taylor b1d174b0a1 Send "are you there" packets on a timer until "I am here is received" 2021-02-25 11:13:18 +00:00
Phil Taylor 6f6145f726 Many changes to mitigate network instability 2021-02-24 22:56:40 +00:00
Phil Taylor ffc62213cd Fix lockup to 785x 2021-02-24 11:00:23 +00:00
Phil Taylor ef79801081 Add logging categories 2021-02-23 21:21:22 +00:00
Phil Taylor 80148a84bf More fixes to retransmit logic 2021-02-23 20:48:53 +00:00
Phil Taylor ae3005b8f8 Changes to retransmit code 2021-02-22 22:25:09 +00:00
Phil Taylor 7d5a066108 Small fix when requesting stream 2021-02-21 15:06:27 +00:00
Phil Taylor ba0509ba61 Fix txaudio and move udphandler into its own thread 2021-02-21 14:53:42 +00:00
Phil Taylor 4e6d4d5faa Some more packet type fixes and make it not disconnect other users from the radio. 2021-02-21 01:18:14 +00:00
Phil Taylor 938a9f1d1b Add another missing break 2021-02-20 20:27:35 +00:00
Phil Taylor 86d0443fac add break to case statement 2021-02-20 20:23:21 +00:00
Phil Taylor 258b56fc58 Fix tx audio packet 2021-02-20 20:19:18 +00:00
Phil Taylor df2c76588d Change the way that packets are handled
Packets can now be cast to a union of structs that allows each part to be accessed individually. Still a work in progress!
2021-02-20 18:29:23 +00:00
Phil Taylor af314599e8 Fix ping sending that I broke! 2021-02-18 19:12:27 +00:00
Phil Taylor b7164d762c Fix for endian-ness of packets 2021-02-18 17:44:11 +00:00
Phil Taylor 61d06213ad Create all UDP packets using a less error-prone method 2021-02-18 15:54:26 +00:00
Phil Taylor e3b3d2a3f4 server now accepting civ/audio connection. 2021-02-17 23:10:26 +00:00
Phil Taylor 87f41cc20a Fix mixed endianness and change how password is encoded 2021-02-15 19:28:17 +00:00
Phil Taylor dce5d93a6c Starting to create udp server 2021-02-14 18:32:58 +00:00
Phil Taylor 4d4a688733 Change token message 2021-02-14 16:23:25 +00:00
Phil Taylor 192bcb0741 Fix packet loss counter 2021-02-14 16:14:56 +00:00
Phil Taylor 3de45a8f2c Some code tidying and get rid of some Windows compile warnings 2021-02-14 15:30:34 +00:00
Phil Taylor f62077eb28 Add packet loss and remove retransmission warnings 2021-02-14 10:40:47 +00:00
Phil Taylor 921bf2025b Add connection speed detection and connection timeout 2021-02-14 07:53:55 +00:00
Phil Taylor 67d6d06a9a Try to fix token renewal failure 2021-02-14 07:15:49 +00:00
Phil Taylor d9b280cdcf Complete rework of UdpHandler
Only tested on Windows so far but should be more in-line with the native implementation
2021-02-13 23:25:24 +00:00
Phil Taylor 941c586243 Yet more audio fixes 2021-02-13 11:04:26 +00:00
Phil Taylor 7dc580ce9c Another TX audio fix 2021-02-12 23:56:02 +00:00
Phil Taylor f83f40bee8 Test tx audio sending (again) 2021-02-12 20:42:56 +00:00
Phil Taylor 5a55d5fd3d Fix for remote connection IP detection 2021-02-12 14:46:02 +00:00
Phil Taylor 62d0c1d681 Update udphandler.cpp 2021-02-12 14:31:26 +00:00
Phil Taylor dc151f5268 Always use 16bit samples internally 2021-02-12 14:28:55 +00:00
Phil Taylor 06105c0e6b Hopefully now fixed linux TX! 2021-02-12 12:53:35 +00:00
Phil Taylor 3ea7a9b8ed Update udphandler.cpp 2021-02-12 12:44:10 +00:00
Phil Taylor 66f35dbe7f Update udphandler.cpp 2021-02-12 12:26:32 +00:00
Phil Taylor 1b0160b18c Update udphandler.cpp 2021-02-12 12:24:45 +00:00
Phil Taylor be6c55bfde Delete duplicate rxaudio signal 2021-02-12 11:04:42 +00:00
Phil Taylor 00a55ef4b0 Merge branch 'lan-alpha' of https://gitlab.com/eliggett/wfview into lan-alpha 2021-02-12 11:03:08 +00:00
Phil Taylor 9648211739 Add a bit more debugging for TX audio 2021-02-12 09:20:15 +00:00
Elliott Liggett 55983bfa66 Found two connections that were the same, commented out one of the two
RxAudio setup connections.
2021-02-11 18:49:56 -08:00
Elliott Liggett ce5c6e3c7f Minor change from setupAudio to setupRxAudio within the udpAudio signal
slot connection.
2021-02-11 18:44:47 -08:00
Phil Taylor 20e681dc91 Merge remote-tracking branch 'origin/ui-enhance' into lan-alpha 2021-02-11 19:47:29 +00:00
Phil Taylor b7f8ad1dee Add initial TX audio support 2021-02-11 19:18:35 +00:00
roeland jansen 53fd008f3a Added support for various spectrum sizes and rig capability support.
wfview has been tested with the following Icom radios over USB port:
IC-7300, IC-7610, IC-7851 (and IC-7850), and IC-9700. It likely works
fine with the IC-705 as well. At this time, the rig's CIV address must
be changed in the preference file to indicate the rig you are using, and
this must be in integer, not hex.
2021-02-10 17:32:56 +00:00
Phil Taylor b8fe90ebc0 Fix location of received devname. 2021-02-09 13:57:03 +00:00
Phil Taylor e6dee05ab1 Add support for codec/bitrate selection 2021-02-09 12:43:28 +00:00
Phil Taylor 228fb07eed Add audio buffersize slider and ability to select samplerate and number of channels. 2021-02-08 16:53:26 +00:00
Phil Taylor b6ad6218e1 Fix for audio latency? 2021-02-08 12:38:30 +00:00
Phil Taylor 9078ee79bb Start the audio thread! 2021-02-08 11:14:17 +00:00
Phil Taylor 563b7feb1c Remove IP address from inuse detection 2021-02-08 10:23:23 +00:00
Phil Taylor f1817874b5 Fix audio thread crash on exit 2021-02-08 10:22:20 +00:00
Elliott Liggett 6fee18df9a Moved audio to separate thread. 2021-02-08 00:31:48 -08:00
Phil Taylor 84f10fe238 Ignore non-IPv4 addresses 2021-02-07 19:09:19 +00:00
Phil Taylor 33821e0515 Allow hostname or ip address for radio. 2021-02-07 18:46:47 +00:00
Phil Taylor 3fe60decea Add checking that IP address matches 2021-02-07 18:13:22 +00:00
Phil Taylor 136c176cbb Don't connect if radio is in use 2021-02-07 17:40:38 +00:00
Phil Taylor fdda23c21f Allow connect/disconnect
Not tested on serial connection!
2021-02-07 12:59:41 +00:00
Phil Taylor 8b6cc02b9e Fix the fixed port fix! 2021-02-07 07:34:06 +00:00
Phil Taylor e7685147ba Remove hard-coded ports in sendRequestSerialAndAudio() 2021-02-06 20:08:58 +00:00
Phil Taylor ee9517159a Fix for pkt7 (ping) requests and improve rtt counter 2021-02-06 10:54:20 +00:00
Phil Taylor f2d32b143f Rename latency to rtt 2021-02-05 21:25:03 +00:00
Phil Taylor 5daf846602 Add network latency measurement 2021-02-05 21:23:00 +00:00
Phil Taylor 8dd8b3a088 Add widget to rhs of statusBar 2021-02-05 20:26:18 +00:00
Phil Taylor 163af0be66 Add audio destructor to delete buffer and fix lots of missing braces 2021-02-05 17:40:58 +00:00
Phil Taylor 90f8cb91c1 Another try for retransmit! 2021-02-05 15:49:08 +00:00
Phil Taylor 415c499238 Remove unnecessary buffer debug message 2021-02-05 14:38:30 +00:00
Phil Taylor fc69c9d151 Put wf data back! 2021-02-05 14:33:07 +00:00
Phil Taylor f7945bffd4 Stop infinite growth of audio buffer 2021-02-05 14:30:50 +00:00
Phil Taylor 1ab4ad94f9 Fixes to retransmit feature 2021-02-05 13:16:48 +00:00
Phil Taylor aa913167ef Merge branch 'lan-alpha' of https://gitlab.com/eliggett/wfview into lan-alpha 2021-02-05 10:45:37 +00:00
Phil Taylor 112706e2b2 Add credit for Kappanhang 2021-02-05 10:45:19 +00:00
roeland jansen c427d93008 changed the audio->setBufferSize from 6000 to 10000 as 6000/8000 gave too many pops, clicks and other dropouts of audio 2021-02-05 10:41:32 +00:00
Elliott Liggett 1a1b7d0673 Adopted closing scheme for linux by default (may remove #ifdef soon).
Changed default buffer size on receive audio to 6ksamples, which is
0.125 seconds. Added debug info for audio.
2021-02-04 22:06:48 -08:00
Phil Taylor 3791c68f5d Lots of <static_cast> additions! 2021-02-04 21:12:38 +00:00
Phil Taylor ea1537a006 More linux compile fixes after code tidy. 2021-02-04 20:20:23 +00:00
Phil Taylor d172b2ec75 Fix linux compile error 2021-02-04 20:09:09 +00:00
Phil Taylor fe7fc46301 Better error messages and more udp code cleanup 2021-02-04 19:53:48 +00:00
Phil Taylor 33b55f8bbf Remove duplicate code from DataReceived() functions 2021-02-04 18:52:00 +00:00
Phil Taylor 7fd165aefd Merge branch 'lan-alpha' of https://gitlab.com/eliggett/wfview into lan-alpha 2021-02-04 16:07:08 +00:00
Phil Taylor 45c3adb958 More retransmit fixes 2021-02-04 16:06:55 +00:00
roeland jansen 934edbea92 fixing typo in debug message 2021-02-04 15:44:28 +00:00
Phil Taylor 215c8863e9 More debugging for retransmit 2021-02-04 13:33:58 +00:00
Phil Taylor 4d0ef4fdc0 Implement single packet retransmit 2021-02-04 13:12:08 +00:00
Elliott Liggett c9fdda4f93 removed accidental merge garbage. oops. 2021-02-03 22:07:12 -08:00
Elliott Liggett a1a1a03580 Merge of local changes, including rejection of brodcast echos.
Merge branch 'lan-alpha' of gitlab.com:eliggett/wfview into lan-alpha
2021-02-03 22:04:50 -08:00
Elliott Liggett fff8a6b6a3 Fixed situation where broadcast commands from wfview that were echo'd
back to wfview were parsed. Minor change to udphandler.cpp to remove
_sleep() calls (they can be later replaced with either qt's threading
library sleep call, or the unix-native usleep/msleep calls, if windows
has those. Also did a minor thing with a type conversion in udphandler.
2021-02-03 22:00:13 -08:00
Phil Taylor 65f5486c5b Attempt to call rig destructor on exit, and remove windows specfic _sleep() 2021-02-03 23:58:11 +00:00
Phil Taylor 5566518d44 Remove hard-coded local IP address! 2021-02-03 20:10:21 +00:00
Phil Taylor 6e074375e7 Add udphandler classes 2021-02-03 20:00:40 +00:00