Wykres commitów

308 Commity (181c2eeb0712aab1384be1ece086d8ef29d48c0a)

Autor SHA1 Wiadomość Data
Elliott Liggett f51f91afaf Applying setup.volume within audio handler if the audio handled is an
output. Added this to the init function.
2021-07-05 23:24:35 -07:00
Phil Taylor 0258ae8bf9 Remove extra debugging for Opus and add warning where opus isn't available 2021-06-23 20:25:45 +01:00
Phil Taylor 0329ea65b3 Update audiohandler.cpp 2021-06-19 14:09:27 +01:00
Phil Taylor b9551edf36 More opus work 2021-06-19 00:11:25 +01:00
Phil Taylor 17f186354e Mono opus working ok but stereo still crashing? 2021-06-18 23:47:22 +01:00
Phil Taylor bbf981cc24 Trying to fix stereo opus stream 2021-06-17 09:55:09 +01:00
Phil Taylor 74382b29ee Enable FEC for Opus codec 2021-06-16 23:44:59 +01:00
Phil Taylor 7c0b2a51b1 Another attempt for Opus audio 2021-06-16 19:14:21 +01:00
Phil Taylor db1dbef168 Try converting to Big endian first 2021-06-16 19:00:56 +01:00
Phil Taylor d3db0484af Another opus fix 2021-06-16 10:38:54 +01:00
Phil Taylor 579d670a75 Another opus try 2021-06-16 10:35:45 +01:00
Phil Taylor 6a5e7692e6 Fixes for opus 2021-06-16 10:33:16 +01:00
Phil Taylor 869659ad54 Add opus encoding/decoding 2021-06-16 09:49:38 +01:00
Phil Taylor 87b26d4ad7 Check that we have at least 1 audio channel available. 2021-06-07 14:06:21 +01:00
Phil Taylor 5d29dd8ac9 Improve audio cleanup 2021-06-07 12:33:14 +01:00
Phil Taylor caa61ee14d Make only MacOS use buffered audio 2021-06-07 10:59:15 +01:00
Phil Taylor 49ac3cb020 Improve mac audio 2021-06-07 10:49:53 +01:00
Phil Taylor 67927b0d56 Fix to allow rtaudio to compile again 2021-06-06 17:56:48 +01:00
Phil Taylor 9a0ea32b88 Add latency check to TX audio 2021-06-05 08:42:00 +01:00
Phil Taylor 0abdbd3218 Fix incorrect use of latency setting 2021-06-05 08:36:24 +01:00
Phil Taylor 6218cf5f04 Fix for txaudio 2021-06-04 13:33:57 +01:00
Phil Taylor 24ce16b0b9 Add QtMultimedia as default audio 2021-06-04 08:24:26 +01:00
Phil Taylor 9de6d64dab Hopefully fix hang on exit when trying to close audio thread. 2021-06-03 12:05:28 +01:00
Phil Taylor 2aefbe5dcd Replace removed code! 2021-06-02 20:15:31 +01:00
Phil Taylor 84fd5e0631 Use heap based rtaudio for enumeration 2021-06-02 20:13:17 +01:00
Phil Taylor 0bc3d6adfe Catch possible exception when closing non-existent stream 2021-06-02 19:18:44 +01:00
Phil Taylor e4ed41f3d3 Fix mac audio 2021-06-02 19:16:46 +01:00
Phil Taylor 2d92dbbb8f Fix mac crash on closing audio 2021-06-02 18:53:30 +01:00
Phil Taylor 006b2904cb Make sure audio is deleted in destructor 2021-06-02 18:36:33 +01:00
Phil Taylor a04044e75b Force specific rtaudio API depending on platform. 2021-06-02 18:35:04 +01:00
Phil Taylor b850eb078b Linux now uses librtuadio-dev where available 2021-06-02 18:16:38 +01:00
Phil Taylor 462551838d Tell rtaudio not to hog device 2021-06-02 12:48:35 +01:00
Phil Taylor 69a34f1c00 Update audiohandler.cpp 2021-06-02 12:35:10 +01:00
Phil Taylor f54898045a Select chunksize based on native sample rate 2021-06-02 12:21:06 +01:00
Phil Taylor f2a36d4cbb Force 48K sample rate when 44100 is detected. 2021-06-02 12:08:48 +01:00
Phil Taylor 6bfb294502 Let buffer keep filling. 2021-06-01 20:19:06 +01:00
Phil Taylor 35dd0c9c62 Fix for crashing pty on mac 2021-05-31 17:55:01 +01:00
Phil Taylor 6a103d051f Remove various compiler warnings and tidy up. 2021-05-30 12:07:51 +01:00
Phil Taylor 05fc1677d4 add silence if audio has stopped 2021-05-30 11:36:13 +01:00
Phil Taylor d2375a9065 fix for mac/linux compiler 2021-05-29 20:50:27 +01:00
Phil Taylor fba496e1d4 Detect number of device channels and convert accordingly 2021-05-29 20:13:52 +01:00
Phil Taylor 923adbaa30 Lots more changes for rtaudio compatibility 2021-05-29 18:59:45 +01:00
Phil Taylor 3db187e0a5 Update audiohandler.cpp 2021-05-28 18:13:08 +01:00
Phil Taylor d072fdc4f3 Use preferred sample rate rather than force 48000 2021-05-27 23:23:23 +01:00
Phil Taylor 5e530b2eba Latency reporting causing issue? 2021-05-27 18:48:19 +01:00
Phil Taylor 3863c5fff9 Allow higher latency 2021-05-27 18:46:01 +01:00
Phil Taylor 2bad85bb35 udpserver fixes 2021-05-27 18:34:44 +01:00
Phil Taylor 85762365ba Fix for tx audio channels 2021-05-27 14:09:12 +01:00
Phil Taylor 0c7892bd82 Add tx audio 2021-05-27 13:54:52 +01:00
Phil Taylor 596f2739b9 Use ring buffer with rtaudio to eliminate mutexes 2021-05-27 11:41:08 +01:00
Phil Taylor 2cd316bee6 move ulaw to dedicated header 2021-05-24 18:00:38 +01:00
Phil Taylor 1393571de6 Add mutex for audio buffer 2021-05-24 09:27:18 +01:00
Phil Taylor 9c29732376 First working rtaudio (output only) 2021-05-23 22:45:10 +01:00
Phil Taylor ae69ef05e5 Non working test 2021-05-23 16:09:41 +01:00
Phil Taylor f22f4224dd Merge branch 'lan-alpha' into rtaudio 2021-05-22 21:09:04 +01:00
Phil Taylor ed566deb0e reenable audio buffers 2021-05-22 15:17:26 +01:00
Phil Taylor cbad7e55fc Attempt to fix crash 2021-05-22 14:58:52 +01:00
Phil Taylor 0bbb9017c9 Stop audiohandler re-enumerating devices on connect. 2021-05-22 10:43:57 +01:00
Phil Taylor 99e71dd0e2 Try increasing audio device buffer size 2021-05-22 09:24:19 +01:00
Phil Taylor 906f21855e Merge branch 'lan-alpha' of https://gitlab.com/eliggett/wfview into lan-alpha 2021-05-22 00:32:19 +01:00
Phil Taylor daf9d7738d Fix for TX audio in udp server 2021-05-22 00:32:09 +01:00
Phil Taylor adebb076c0 Fix for stuttering audio on mac 2021-05-22 00:10:22 +01:00
Phil Taylor 61ccda9fac Change audiohandler to use latency for tx audio 2021-05-21 10:51:25 +01:00
Phil Taylor 369ba90897 Allow receive only in udpHandler 2021-05-18 09:32:56 +01:00
Phil Taylor bada37acdf Make audio input buffer a qMap 2021-05-17 16:19:36 +01:00
Phil Taylor 57bffd73a2 More rtaudio stuff 2021-05-16 21:16:59 +01:00
Phil Taylor 8f135b8ddd Add --debug option to increase debugging for release builds 2021-05-15 18:53:16 +01:00
Phil Taylor 94202d0c8d Remove volume change debugging message 2021-05-14 09:53:59 +01:00
Phil Taylor 98503a5a66 Fix for Built-in audio on MacOS 2021-05-03 09:03:18 +01:00
Phil Taylor 6bba4eb6dc Set AFGain to 100% on LAN connections 2021-03-23 18:19:47 +00:00
Phil Taylor c2091e9c4e Add local volume control for UDP connections. 2021-03-22 18:53:34 +00:00
Phil Taylor 54daaccdfa add volume control to audiohandler 2021-03-22 16:02:22 +00:00
Phil Taylor 7cb9ae9195 Small fixes to UDP server 2021-03-22 15:16:41 +00:00
Phil Taylor 8583973ca8 Add USB audio handling to UDP server 2021-03-22 09:10:03 +00:00
Phil Taylor 96949f5904 Various changes to incoming audio handling to improve MacOS 2021-03-14 20:06:20 +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 607b3c4333 Merge branch 'lan-alpha' of https://gitlab.com/eliggett/wfview into lan-alpha 2021-03-13 09:53:47 +00:00
Phil Taylor 40d0c99964 Some code tidying in udpserver/audiohandler 2021-03-13 09:50:43 +00:00
Phil Taylor 18fe0cba2e Fixes for MacOS 2021-03-13 09:23:06 +00:00
Phil Taylor c610edd371 Clear buffer so resampled 8-bit audio works correctly. 2021-03-09 19:53:28 +00:00
Phil Taylor 7cdc432f48 Final buffer size fix for Linux (hopefully) 2021-03-09 17:42:06 +00:00
Phil Taylor 84db35f9f7 Another linux buffer fix 2021-03-09 17:38:13 +00:00
Phil Taylor 71d271957d Fix buffersize in linux 2021-03-09 17:37:00 +00:00
Phil Taylor a0f4a4deeb Add audio resampler 2021-03-09 17:22:16 +00:00
Phil Taylor 449b017527 remove redundant code from audiohandler 2021-03-03 09:49:49 +00:00
Phil Taylor 90584c5db4 Update audiohandler.cpp 2021-03-02 15:41:48 +00:00
Phil Taylor e5f1ac31a8 Identify if we have missing audio seq numbers. 2021-03-02 14:35:33 +00:00
Phil Taylor 1edcd6cc59 Update audiohandler.cpp 2021-03-02 12:06:46 +00:00
Phil Taylor 8eaaa014a0 Update audiohandler.cpp 2021-03-02 12:00:13 +00:00
Phil Taylor c01fda2fa7 Update audiohandler.cpp 2021-03-02 11:57:02 +00:00
Phil Taylor 8c48bf8f2e Update audiohandler.cpp 2021-03-02 11:53:48 +00:00
Phil Taylor d2246234cd Audio debugging 2021-03-02 11:50:42 +00:00
Phil Taylor af6131708a More audio fixes 2021-03-02 11:12:12 +00:00
Phil Taylor e3ee4edddd Update audiohandler.cpp 2021-03-02 10:26:08 +00:00
Phil Taylor 0a02ae06e1 Update audiohandler.cpp 2021-03-02 10:22:41 +00:00
Phil Taylor 8114944e9c Another attempt at improving Linux audio 2021-03-02 10:19:08 +00:00
Phil Taylor d4d2c3f1e7 Select default audio devices if init of configured ones fails. 2021-03-02 10:07:08 +00:00
Phil Taylor cfed58e84e Try delaying RX audio until latency/2 2021-03-02 09:49:10 +00:00
Phil Taylor fdad4fd6ea Select default input/output audio devices if configured ones not found. 2021-03-01 20:44:09 +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 aef03a6b7e Add audio handling to UDP server 2021-02-28 20:10:07 +00:00
Phil Taylor 6748a5130c Update audiohandler.cpp 2021-02-27 13:49:16 +00:00
Phil Taylor dd443a5669 Update audiohandler.cpp 2021-02-27 13:43:53 +00:00
Phil Taylor a3f40f51be Update audiohandler.cpp 2021-02-27 13:34:52 +00:00
Phil Taylor 1e8337e318 Update audiohandler.cpp 2021-02-27 13:31:34 +00:00
Phil Taylor ef1f4f1e97 Update audiohandler.cpp 2021-02-27 13:29:39 +00:00
Phil Taylor 296bf2aab7 Update audiohandler.cpp 2021-02-27 13:26:59 +00:00
Phil Taylor 17a4ef07cd Update audiohandler.cpp 2021-02-27 13:24:23 +00:00
Phil Taylor b9b1a9964a Update audiohandler.cpp 2021-02-27 13:21:59 +00:00
Phil Taylor ed729f74c6 Update audiohandler.cpp 2021-02-27 13:19:40 +00:00
Phil Taylor 3059c5ccf5 Update audiohandler.cpp 2021-02-27 13:13:27 +00:00
Phil Taylor d4c1a47a54 another fix for linux txaudio 2021-02-27 12:52:21 +00:00
Phil Taylor 9454759d9f Update audiohandler.cpp 2021-02-27 12:38:12 +00:00
Phil Taylor 12a45032f9 Update audiohandler.cpp 2021-02-27 12:13:39 +00:00
Phil Taylor 1998e2898d Update audiohandler.cpp 2021-02-27 11:12:41 +00:00
Phil Taylor 36e34fa73c Update audiohandler.cpp 2021-02-27 11:05:32 +00:00
Phil Taylor e0c56ae447 Update audiohandler.cpp 2021-02-27 11:04:08 +00:00
Phil Taylor 4a10c34f90 Allow for the fact that Linux can send random length tx audio. 2021-02-27 11:00:44 +00:00
Phil Taylor 00fa92aea3 another audio handler fix 2021-02-27 10:13:59 +00:00
Phil Taylor de0f13c49a Hopefully fix linux issue with new tx audio 2021-02-27 10:11:27 +00:00
Phil Taylor 1fae53f140 More TX audio fixes and fix latency slider error 2021-02-27 10:04:36 +00:00
Phil Taylor f0809fbe1a Fixes to txaudio 2021-02-27 09:43:22 +00:00
Phil Taylor 48b2f8fd94 Change tx latency 2021-02-27 09:37:55 +00:00
Phil Taylor e593e5e90a Change TX audio to use timed buffer. 2021-02-27 09:34:56 +00:00
Phil Taylor 5a547440b3 Remove unnecessary debugging message! 2021-02-27 00:49:33 +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 bfc3bbf25b Update audiohandler.cpp 2021-02-26 10:29:09 +00:00
Phil Taylor a3470c836a Update audiohandler.cpp 2021-02-26 10:22:30 +00:00
Phil Taylor 4d9ba2af05 Update audiohandler.cpp 2021-02-26 10:20:55 +00:00
Phil Taylor aa2caae3b0 Update audiohandler.cpp 2021-02-26 10:19:00 +00:00
Phil Taylor 8a5c912f47 re-enable audio output buffer 2021-02-26 09:49:31 +00:00
Phil Taylor 93ef26995e Fix audiohandler compile warning 2021-02-25 18:51:51 +00:00
Phil Taylor 8eeeca07af Move uLaw encoding to a lookup table to match decoding 2021-02-25 17:49:48 +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 ba0509ba61 Fix txaudio and move udphandler into its own thread 2021-02-21 14:53:42 +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 3ac1c004e3 More TX audio fixes... 2021-02-13 00:45:59 +00:00
Phil Taylor 9cbd572d4a Update audiohandler.cpp 2021-02-13 00:05:38 +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 dc151f5268 Always use 16bit samples internally 2021-02-12 14:28:55 +00:00
Phil Taylor 518b70c0e6 Update audiohandler.cpp 2021-02-12 12:59:33 +00:00
Phil Taylor cabc7cd16a Fix linux compile warnings 2021-02-12 12:58:37 +00:00
Phil Taylor 06105c0e6b Hopefully now fixed linux TX! 2021-02-12 12:53:35 +00:00
Phil Taylor d0462e06a5 Update audiohandler.cpp 2021-02-12 12:42:42 +00:00
Phil Taylor 50731d45c7 More txaudio fixes 2021-02-12 12:23:00 +00:00
Phil Taylor 955963042e Update audiohandler.cpp 2021-02-12 12:11:21 +00:00
Phil Taylor 98a3573ad3 Minor change 2021-02-12 12:08:50 +00:00
Phil Taylor 9f27c3acb2 Maybe fix TX audio on linux? 2021-02-12 12:02:25 +00:00
Phil Taylor 9648211739 Add a bit more debugging for TX audio 2021-02-12 09:20:15 +00:00
Phil Taylor a9971a1c4e Make uLawEncode static 2021-02-11 19:55:51 +00:00
Phil Taylor b7f8ad1dee Add initial TX audio support 2021-02-11 19:18:35 +00:00