Commit Graph

6355 Commits

Author SHA1 Message Date
Chris Robinson f0408809d6 Cleanup common sources' includes 2019-07-29 09:29:35 -07:00
Chris Robinson 40e937c63a Cleanup the examples' includes 2019-07-29 08:21:38 -07:00
Chris Robinson d38d255364 More include cleanups 2019-07-28 21:29:59 -07:00
Chris Robinson 83432a7e5c Move some headers out of the Include subdirectory 2019-07-28 19:09:07 -07:00
Chris Robinson cb3e96e756 Rename Alc to alc 2019-07-28 18:56:04 -07:00
Chris Robinson 93e60919c8 Rename alMain.h to alcmain.h
And move it and alu.h to Alc/.
2019-07-28 18:33:29 -07:00
Chris Robinson bb0062625f Move the ADPCM decoders to alBuffer.cpp 2019-07-28 17:22:00 -07:00
Chris Robinson b4d56d3fdf Remove the UNUSED macro 2019-07-28 17:15:34 -07:00
Chris Robinson c8bbd75bf9 Remove a couple more cmake checks 2019-07-28 15:37:12 -07:00
Chris Robinson 12e179d539 Remove some unnecessary header checks 2019-07-28 15:22:58 -07:00
Chris Robinson 585d965c92 Remove a couple unnecessary includes 2019-07-28 15:16:13 -07:00
Chris Robinson e0a795d9d2 Clean up some more headers 2019-07-28 14:55:02 -07:00
Chris Robinson 5428d6acc3 Clean up includes a bit
Trying out the IWYU tool to only include what's necessary in a given file.
Seems to work decently (it'll miss some headers, suggest unnecessary ones, and
make nonsense suggestions for some things, but overall gives a good starting
point), and helps clean out some headers.
2019-07-28 11:28:36 -07:00
Chris Robinson 659b6d4245 Use more proper cmake to set the C/C++ standard version 2019-07-27 18:58:19 -07:00
Chris Robinson 7cfb353334 Don't explicitly check for standard functions 2019-07-26 14:02:14 -07:00
Chris Robinson b22ecc45c9 Increase the video picture queue size to 24 2019-07-26 03:44:46 -07:00
Chris Robinson 18f1139de8 Only redraw the image when necessary 2019-07-23 12:51:14 -07:00
Chris Robinson b8ac4b79e4 Only send packets as needed 2019-07-23 02:38:07 -07:00
Chris Robinson 8a9434c623 Use a local variable to track the decoded pts 2019-07-20 18:46:43 -07:00
Chris Robinson f0ed35d3d0 Set the initial clock time closer to starting playback 2019-07-20 01:10:14 -07:00
Chris Robinson 9959d661a0 Restructure codec send/receive calls
In particular, after an initial fill of the codec's internal buffer, each
receive_frame call is followed by one or more send_packet calls. For
asynchronous codecs, this has the effect of letting the codec work while the
handler thread is waiting for an AVFrame structure to become available or
waiting for more decoded data to be needed. For synchronous codecs, this
makes the send_packet calls use up time that would be spent waiting.
2019-07-19 22:55:20 -07:00
Chris Robinson 29cf87f34d Combine duplicate code into a function 2019-07-18 16:04:45 -07:00
kcat ec855215db Merge pull request #318 from Lopuska/pitchshift_for_vmorpher
pitch shift for formant filters
2019-07-18 15:42:45 -07:00
Anis 31055f48d6 pitch shift for formant filters 2019-07-18 21:42:59 +02:00
Chris Robinson 2b21a08f89 Receive video frames in a loop 2019-07-16 20:20:25 -07:00
Chris Robinson 101e641288 Fix an unused parameter warning 2019-07-16 16:19:51 -07:00
Chris Robinson ffc7258cbc Remove an unused lambda capture 2019-07-16 16:04:56 -07:00
kcat 8a9e72109e Merge pull request #317 from Lopuska/vocal_morpher_improvements
misc fixes and improvements for Vocal Morpher
2019-07-16 16:04:27 -07:00
Anis ee013521ee misc fixes and improvements for Vocal Morpher 2019-07-16 17:40:18 +02:00
Philip Muzzall 28f07d2d5e Misc fixes (#315)
* Added rc scripts for dll

* Reverted numbering scheme in CMakeLists

* Misc fixes
2019-07-14 17:39:45 -07:00
Chris Robinson b728cf7bd6 Properly include getopt.h 2019-07-14 04:05:08 -07:00
Chris Robinson 4ff7bfd2d8 Use atomics for the picture queue 2019-07-14 03:59:57 -07:00
Chris Robinson ac7eeeae79 Don't use the same mutex for the video clock 2019-07-14 03:59:57 -07:00
Chris Robinson 93c53e33f0 Receive frames directly into the picture's AVFrame 2019-07-14 03:59:57 -07:00
Chris Robinson e7e734f8b9 Don't use one texture per picture in alffplay 2019-07-14 03:59:56 -07:00
kcat d2f71ae42a Merge pull request #314 from PenguinDOOM/pr-master
Fixed makemhr and sofa-info errors
2019-07-14 03:58:38 -07:00
Penguin 4027664fc2 Fixed MSVC error. 2019-07-14 18:03:49 +09:00
Penguin 313549c76d Add missing header. 2019-07-14 18:03:32 +09:00
Chris Robinson 363e2fb73a MSVC doesn't like parenthesized type initialization 2019-07-13 16:51:19 -07:00
Chris Robinson f99474c913 Handle alffplay video using continuous rendering 2019-07-12 23:34:21 -07:00
Chris Robinson 79d572cf72 Properly comment out the sample config's options 2019-07-12 22:13:19 -07:00
Chris Robinson 2e6c7808b0 Try to improve alffplay timing again 2019-07-11 03:54:26 -07:00
Chris Robinson 99b55bc230 Add the Windows SDK for the winmm library path 2019-07-10 20:06:50 -07:00
Chris Robinson 93d0c8993d Fix OpenSL library name 2019-07-10 19:55:14 -07:00
Chris Robinson e2f2b74d6a Get rid of the custom CHECK_SHARED_FUNCTION_EXISTS function 2019-07-10 19:32:26 -07:00
Chris Robinson ac28b7d0f2 Use a find module for OpenSL 2019-07-10 18:54:43 -07:00
Chris Robinson 426c4587cc Some clean up to use uniform initialization 2019-07-10 02:13:28 -07:00
Chris Robinson 159024acc9 Improve alffplay video clock timing 2019-07-09 22:15:05 -07:00
Lopuska 4a33bbb14d vocal morpher implementation (#312)
* vocal morpher implementation

* compile fix for GCC
2019-07-09 22:14:31 -07:00
Chris Robinson 3ffb6867a3 Rework packet handling in alffplay
Turns out avcodec_send_packet is what can invoke the decode for serialized
codecs, so don't call that in the parse handler thread. The packet queue is
used to get the compressed data from the parse handler to the audio/video
threads.

Additionally, don't serialize the video frame preparation with the decode
thread.
2019-07-08 13:18:10 -07:00