summaryrefslogtreecommitdiff
path: root/modules/opus/SCsub
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-03-18 12:41:18 +0100
committerRémi Verschelde <rverschelde@gmail.com>2020-03-18 12:41:21 +0100
commit7f6b62cef0127b4cf7994d917e18e7005c524bfb (patch)
tree583b33fe120ceca3bf27502eb6c8692dda16ac13 /modules/opus/SCsub
parenta2d3ba33728230eacdf4a5b0e48c89a5c4b24eb1 (diff)
opus/vorbis: Remove dead code not used since 3.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.
Diffstat (limited to 'modules/opus/SCsub')
-rw-r--r--modules/opus/SCsub12
1 files changed, 5 insertions, 7 deletions
diff --git a/modules/opus/SCsub b/modules/opus/SCsub
index 1db5b0987e..fec2911d6d 100644
--- a/modules/opus/SCsub
+++ b/modules/opus/SCsub
@@ -3,7 +3,9 @@
Import('env')
Import('env_modules')
-stub = True
+# Only kept to build the thirdparty library used by the webm module.
+# AudioStreamOpus was dropped in 3.0 due to incompatibility with the new audio
+# engine. If you want to port it, fetch it from the Git history.
env_opus = env_modules.Clone()
@@ -235,9 +237,5 @@ if env['builtin_opus']:
env_thirdparty.disable_warnings()
env_thirdparty.add_source_files(env.modules_sources, thirdparty_sources)
-if not stub:
- # Module files
- env_opus.add_source_files(env.modules_sources, "*.cpp")
-else:
- # Module files
- env_opus.add_source_files(env.modules_sources, "stub/register_types.cpp")
+# Module files
+env_opus.add_source_files(env.modules_sources, "register_types.cpp")