Commit graph

149 commits

Author SHA1 Message Date
Phil Taylor
816134d4fd Another opus fix 2021-06-16 10:38:54 +01:00
Phil Taylor
4f9d6c6808 Another opus try 2021-06-16 10:35:45 +01:00
Phil Taylor
1522a38784 Fixes for opus 2021-06-16 10:33:16 +01:00
Phil Taylor
19901d6ae2 Add opus encoding/decoding 2021-06-16 09:49:38 +01:00
Phil Taylor
2c89c757e3 Check that we have at least 1 audio channel available. 2021-06-07 14:06:21 +01:00
Phil Taylor
0d447fe952 Improve audio cleanup 2021-06-07 12:33:14 +01:00
Phil Taylor
903aa6495b Make only MacOS use buffered audio 2021-06-07 10:59:15 +01:00
Phil Taylor
b0e4588c5c Improve mac audio 2021-06-07 10:49:53 +01:00
Phil Taylor
5d0ab201d5 Fix to allow rtaudio to compile again 2021-06-06 17:56:48 +01:00
Phil Taylor
708b32d1a4 Add latency check to TX audio 2021-06-05 08:42:00 +01:00
Phil Taylor
fb56ab063c Fix incorrect use of latency setting 2021-06-05 08:36:24 +01:00
Phil Taylor
a93e183773 Fix for txaudio 2021-06-04 13:33:57 +01:00
Phil Taylor
68b759b80c Add QtMultimedia as default audio 2021-06-04 08:24:26 +01:00
Phil Taylor
d1dc0fcd2c Hopefully fix hang on exit when trying to close audio thread. 2021-06-03 12:05:28 +01:00
Phil Taylor
e1f47d1e7d Replace removed code! 2021-06-02 20:15:31 +01:00
Phil Taylor
59aa7f0649 Use heap based rtaudio for enumeration 2021-06-02 20:13:17 +01:00
Phil Taylor
20e1ee863b Catch possible exception when closing non-existent stream 2021-06-02 19:18:44 +01:00
Phil Taylor
bc639d31cf Fix mac audio 2021-06-02 19:16:46 +01:00
Phil Taylor
99c7f11571 Fix mac crash on closing audio 2021-06-02 18:53:30 +01:00
Phil Taylor
1e6575376d Make sure audio is deleted in destructor 2021-06-02 18:36:33 +01:00
Phil Taylor
757712c438 Force specific rtaudio API depending on platform. 2021-06-02 18:35:04 +01:00
Phil Taylor
69bdc8bd9b Linux now uses librtuadio-dev where available 2021-06-02 18:16:38 +01:00
Phil Taylor
040603178b Tell rtaudio not to hog device 2021-06-02 12:48:35 +01:00
Phil Taylor
50712626fc Update audiohandler.cpp 2021-06-02 12:35:10 +01:00
Phil Taylor
822b38e051 Select chunksize based on native sample rate 2021-06-02 12:21:06 +01:00
Phil Taylor
1f5c6ccd74 Force 48K sample rate when 44100 is detected. 2021-06-02 12:08:48 +01:00
Phil Taylor
c9114fe355 Let buffer keep filling. 2021-06-01 20:19:06 +01:00
Phil Taylor
aa7a57f89c Fix for crashing pty on mac 2021-05-31 17:55:01 +01:00
Phil Taylor
dda1f91afa Remove various compiler warnings and tidy up. 2021-05-30 12:07:51 +01:00
Phil Taylor
bbf1ecb6d8 add silence if audio has stopped 2021-05-30 11:36:13 +01:00
Phil Taylor
94ecd5bb56 fix for mac/linux compiler 2021-05-29 20:50:27 +01:00
Phil Taylor
5c0c22c6f4 Detect number of device channels and convert accordingly 2021-05-29 20:13:52 +01:00
Phil Taylor
a3cbeacf5e Lots more changes for rtaudio compatibility 2021-05-29 18:59:45 +01:00
Phil Taylor
344ab41930 Update audiohandler.cpp 2021-05-28 18:13:08 +01:00
Phil Taylor
941b5159d5 Use preferred sample rate rather than force 48000 2021-05-27 23:23:23 +01:00
Phil Taylor
2a61e7f849 Latency reporting causing issue? 2021-05-27 18:48:19 +01:00
Phil Taylor
8859f2d6ea Allow higher latency 2021-05-27 18:46:01 +01:00
Phil Taylor
1e917b3c3b udpserver fixes 2021-05-27 18:34:44 +01:00
Phil Taylor
5ffb27ae78 Fix for tx audio channels 2021-05-27 14:09:12 +01:00
Phil Taylor
d7afcf0309 Add tx audio 2021-05-27 13:54:52 +01:00
Phil Taylor
f567d5ab04 Use ring buffer with rtaudio to eliminate mutexes 2021-05-27 11:41:08 +01:00
Phil Taylor
65a3141b3c move ulaw to dedicated header 2021-05-24 18:00:38 +01:00
Phil Taylor
bf838076f5 Add mutex for audio buffer 2021-05-24 09:27:18 +01:00
Phil Taylor
45f5fdf344 First working rtaudio (output only) 2021-05-23 22:45:10 +01:00
Phil Taylor
a2219585af Non working test 2021-05-23 16:09:41 +01:00
Phil Taylor
5b64ec3c19 Merge branch 'lan-alpha' into rtaudio 2021-05-22 21:09:04 +01:00
Phil Taylor
96fd472ee4 reenable audio buffers 2021-05-22 15:17:26 +01:00
Phil Taylor
5721d3be79 Attempt to fix crash 2021-05-22 14:58:52 +01:00
Phil Taylor
a7f76ebbea Stop audiohandler re-enumerating devices on connect. 2021-05-22 10:43:57 +01:00
Phil Taylor
c344ecc928 Try increasing audio device buffer size 2021-05-22 09:24:19 +01:00