Commit graph

156 commits

Author SHA1 Message Date
Phil Taylor
eca60733f5 Update audiohandler.cpp 2021-06-19 14:09:27 +01:00
Phil Taylor
0f43b278f8 More opus work 2021-06-19 00:11:25 +01:00
Phil Taylor
d866b2c074 Mono opus working ok but stereo still crashing? 2021-06-18 23:47:22 +01:00
Phil Taylor
fdd3511438 Trying to fix stereo opus stream 2021-06-17 09:55:09 +01:00
Phil Taylor
9cbb379444 Enable FEC for Opus codec 2021-06-16 23:44:59 +01:00
Phil Taylor
f09f988b1a Another attempt for Opus audio 2021-06-16 19:14:21 +01:00
Phil Taylor
9dce7aa64c Try converting to Big endian first 2021-06-16 19:00:56 +01:00
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