summaryrefslogtreecommitdiffstats
path: root/modules/opus/config.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove WebM support (and deps libvpx and opus)Rémi Verschelde2021-10-151-6/+0
| | | | | | | | | | | | | | | | | | | We've had many issues with WebM support and specifically the libvpx library over the years, mostly due to its poor integration in Godot's buildsystem, but without anyone really interested in improving this state. With the new GDExtensions in Godot 4.0, we intend to move video decoding to first-party extensions, and this would likely be done using something like libvlc to expose more codecs. Removing the `webm` module means we can remove libsimplewebm, libvpx and opus, which we were only used for that purpose. Both libvpx and opus were fairly complex pieces of the buildsystem, so this is a nice cleanup. This also removes the compile-time dependency on `yasm`. Fixes lots of compilation or non-working WebM issues which will be linked in the PR.
* SCons: Validate dependencies for linked multimedia modulesRémi Verschelde2020-06-031-1/+1
| | | | | | | | This is still a bit hacky and eventually we should rework the way we handle optional dependencies (especially with regard to builtin/system libs), but it's a simple first step. Fixes #39219.
* SCons: Format buildsystem files with psf/blackRémi Verschelde2020-03-301-0/+1
| | | | | | | | | | | | | | | | | | | | | Configured for a max line length of 120 characters. psf/black is very opinionated and purposely doesn't leave much room for configuration. The output is mostly OK so that should be fine for us, but some things worth noting: - Manually wrapped strings will be reflowed, so by using a line length of 120 for the sake of preserving readability for our long command calls, it also means that some manually wrapped strings are back on the same line and should be manually merged again. - Code generators using string concatenation extensively look awful, since black puts each operand on a single line. We need to refactor these generators to use more pythonic string formatting, for which many options are available (`%`, `format` or f-strings). - CI checks and a pre-commit hook will be added to ensure that future buildsystem changes are well-formatted.
* opus/vorbis: Remove dead code not used since 3.0Rémi Verschelde2020-03-181-8/+0
| | | | | | | | | | | Since the new audio system in 3.0 we switched the OGG support to stb_vorbis, and the Opus stream support was disabled as incompatible (see #7496). We still build the libraries as they are needed by the theora and webm modules, but we don't need any Godot code apart from `register_types`. Fixes #7496.
* SCons: Pass env to modules can_build methodRémi Verschelde2018-05-301-1/+1
| | | | | | This allows to disable modules based on the environment, in particular `env[tools]` which tells us if we are building the editor or not.
* Restored opus build since WebM needs it, but disabled it from code.Juan Linietsky2017-12-241-6/+1
|
* -Removed OpenMP support, replaced by a custom class.Juan Linietsky2017-12-241-1/+6
| | | | -Disabled Opus, implementation is wrong.
* doc: Make all module docs self-containedRémi Verschelde2017-11-151-2/+8
|
* Fix video playbackMatt Hughes2017-10-141-2/+1
| | | | | | | | This adds support to - VideoPlayer - VideoStreamWebm - VideoStreamTheora
* Oops! Audio engine has vanished :DJuan Linietsky2017-01-151-1/+2
|
* style: Fix PEP8 blank lines issues in Python filesRémi Verschelde2016-11-011-0/+1
| | | | | | | | | | | Done with `autopep8 --select=E3,W3`, fixes: - E301 - Add missing blank line. - E302 - Add missing 2 blank lines. - E303 - Remove extra blank lines. - E304 - Remove blank line following function decorator. - E309 - Add missing blank line. - W391 - Remove trailing blank lines.
* style: Start applying PEP8 to Python files, indentation issuesRémi Verschelde2016-11-011-2/+2
| | | | | | | | | | | | | | | | | | | Done with `autopep8 --select=E1`, fixes: - E101 - Reindent all lines. - E112 - Fix under-indented comments. - E113 - Fix over-indented comments. - E115 - Fix under-indented comments. - E116 - Fix over-indented comments. - E121 - Fix a badly indented line. - E122 - Fix a badly indented line. - E123 - Fix a badly indented line. - E124 - Fix a badly indented line. - E125 - Fix indentation undistinguish from the next logical line. - E126 - Fix a badly indented line. - E127 - Fix a badly indented line. - E128 - Fix a badly indented line. - E129 - Fix a badly indented line.
* ogg/vorbis/opus: Make them modules and unbundle thirdparty libsRémi Verschelde2016-10-151-0/+6
Took the opportunity to undo the Godot changed made to the opus source. The opus module should eventually be built in its own environment to avoid polluting others with too many include dirs and defines. TODO: Fix the platform/ stuff for opus.