Commit graph

230 commits

Author SHA1 Message Date
Phil Taylor
dfb1a62850 More multi-radio support (nearly working!) 2022-01-22 15:12:36 +00:00
Phil Taylor
354fc8085b Initial server commit 2022-01-17 17:23:55 +00:00
Phil Taylor
1555e30aac Buffer for correct latency 2022-01-16 19:17:32 +00:00
Phil Taylor
8713292090 Force refilling buffer once it has been flushed. 2022-01-16 19:04:44 +00:00
Phil Taylor
a2fbc078ba Increase audio buffer size 2022-01-16 18:54:41 +00:00
Phil Taylor
f7e4ea6958 Tidy code after merge 2022-01-16 18:47:13 +00:00
Phil Taylor
c9819e28a4 Merge branch 'master' into audio-enhance 2022-01-16 18:28:36 +00:00
Phil Taylor
83101a2435 Zero audio to stop blip at startup 2022-01-15 16:31:50 +00:00
Phil Taylor
847f504c48 More fixes 2022-01-14 20:52:25 +00:00
Phil Taylor
27a77445d1 Move buffering code 2022-01-14 20:41:56 +00:00
Phil Taylor
bdc0608f38 Check when audio has been buffered 2022-01-14 20:29:27 +00:00
Phil Taylor
7691108c82 Ensure buffer is at least 1/2 filled before starting 2022-01-14 20:23:59 +00:00
Phil Taylor
6da151035a Set latency for tx and rx 2022-01-14 19:40:25 +00:00
Phil Taylor
cf91e99086 Extra audio debugging 2022-01-14 18:57:20 +00:00
Phil Taylor
e75b6ab490 Clear audio buffer if it's full 2022-01-14 16:21:32 +00:00
Phil Taylor
654710715e Clear audio buffer if too many packets are delayed 2022-01-14 16:00:05 +00:00
Phil Taylor
1a674314a2 Add extra debugging 2022-01-13 19:54:43 +00:00
Phil Taylor
395c926ad7 Latency on server is wrong way round! 2022-01-13 19:34:34 +00:00
Phil Taylor
aef968e7fe Bit of tidying 2022-01-07 14:52:33 +00:00
Phil Taylor
8ee110e65c Revert "Tidying of audio handling"
This reverts commit dec31f9f62.
2022-01-07 12:28:43 +00:00
Phil Taylor
9380369e6f Revert "Hopefully fix opus issue in last commit?"
This reverts commit 228bf1cdb9.
2022-01-07 12:28:30 +00:00
Phil Taylor
228bf1cdb9 Hopefully fix opus issue in last commit? 2022-01-07 12:16:33 +00:00
Phil Taylor
dec31f9f62 Tidying of audio handling 2022-01-07 12:09:36 +00:00
Phil Taylor
4a00d5d728 Improve FEC operation with opus 2022-01-06 13:44:29 +00:00
Phil Taylor
aa8bfabc09 Attempt to enable FEC, not sure if it works though? 2022-01-05 15:27:46 +00:00
Phil Taylor
6871e6660d Maybe fix audio crash? 2022-01-04 21:26:03 +00:00
Phil Taylor
91aeb924f0 Try to fix server 2022-01-04 19:50:38 +00:00
Phil Taylor
bcabf3a0c7 Remove some extra logging from audio 2021-11-18 12:20:36 +00:00
Phil Taylor
8dfa8486a5 Force PA to use 48K Sample Rate if default is 44.1K 2021-11-15 15:26:18 +00:00
Phil Taylor
ee84c9a3c3 Check number of samples in opus packet before attempting decode 2021-11-10 18:07:48 +00:00
Phil Taylor
25b980618a Catch exception in opus_decode 2021-11-10 17:44:33 +00:00
Phil Taylor
531f939190 Small changes to audio handler 2021-11-09 15:55:43 +00:00
Phil Taylor
d9876e4d6c Fix resample ratio for input and output (hopefully!) 2021-11-07 13:49:00 +00:00
Phil Taylor
0621b1d588 Create resampleRatio 2021-11-07 13:27:52 +00:00
Phil Taylor
0369124f84 Close PA stream after stopping it! 2021-11-07 12:16:25 +00:00
Phil Taylor
dd1980a683 Add portaudio support 2021-11-01 20:27:33 +00:00
Phil Taylor
c3cd53115c Use buffered audio for Linux (was just Mac only) 2021-11-01 11:17:25 +00:00
Phil Taylor
2d05ad6666 Adjust buffer size depending on latency setting 2021-11-01 09:18:01 +00:00
Phil Taylor
5b9c76ea7b Stuff audio buffer directly rather than signal/slot 2021-10-31 23:53:20 +00:00
Phil Taylor
eef4389b08 Don't block until audio buffer has space 2021-10-22 00:24:30 +01:00
Phil Taylor
43a346c24d Add a bit of logging for creating/destruction of opus 2021-08-15 11:36:08 +01:00
Phil Taylor
2bdef9745c Is this going to fix 8 bit audio? 2021-08-14 17:15:59 +01:00
Phil Taylor
ed44a20ae9 All audio codecs now work in both directions! 2021-08-14 16:27:31 +01:00
Phil Taylor
2e04da30fd Update audiohandler.cpp 2021-08-14 16:16:11 +01:00
Phil Taylor
74e45d70f9 more 8bit fixes! 2021-08-14 16:11:48 +01:00
Phil Taylor
95a4631177 ulaw encoding test 2021-08-14 16:04:50 +01:00
Phil Taylor
ee7aeb4778 Update audiohandler.cpp 2021-08-14 13:16:39 +01:00
Phil Taylor
e64fa59458 Update audiohandler.cpp 2021-08-14 13:05:18 +01:00
Phil Taylor
27a256eafd 8 bit encoding fix 2021-08-14 13:02:07 +01:00
Phil Taylor
631c051a03 Another issue with 8 bit audio 2021-08-14 12:25:50 +01:00