File system-opus.patch of Package nodejs-signal-ringrtc
--- webrtc-5615a/build/linux/unbundle/replace_gn_files.py.old 2023-06-01 18:49:06.878359478 +0200
+++ webrtc-5615a/build/linux/unbundle/replace_gn_files.py 2023-06-01 21:14:55.434631193 +0200
@@ -61,7 +61,7 @@ REPLACEMENTS = {
'libxslt': 'third_party/libxslt/BUILD.gn',
'libyuv' : 'third_party/libyuv/BUILD.gn',
'openh264': 'third_party/openh264/BUILD.gn',
- 'opus': 'third_party/opus/BUILD.gn',
+ 'opus': 'ringrtc/opus/BUILD.gn',
're2': 'third_party/re2/BUILD.gn',
'snappy': 'third_party/snappy/BUILD.gn',
# Use system libSPIRV-Tools in Swiftshader. These two shims MUST be used together.
--- webrtc-5615a/modules/audio_coding/codecs/opus/opus_inst.h.old 2023-06-01 18:49:03.384613407 +0200
+++ webrtc-5615a/modules/audio_coding/codecs/opus/opus_inst.h 2023-06-01 21:27:22.965231506 +0200
@@ -16,8 +16,8 @@
RTC_PUSH_IGNORING_WUNDEF()
// RingRTC change to use a fork of opus
-#include "ringrtc/opus/src/include/opus.h"
-#include "ringrtc/opus/src/include/opus_multistream.h"
+#include <opus.h>
+#include <opus_multistream.h>
RTC_POP_IGNORING_WUNDEF()
struct WebRtcOpusEncInst {
--- webrtc-5845j/modules/audio_coding/BUILD.gn.old
+++ webrtc-5845j/modules/audio_coding/BUILD.gn
@@ -130,6 +130,9 @@ rtc_library("red") {
"../../rtc_base:checks",
"../../rtc_base:logging",
]
+ public_deps = [
+ "//ringrtc/opus",
+ ]
absl_deps = [
"//third_party/abseil-cpp/absl/strings",
"//third_party/abseil-cpp/absl/types:optional",