diff options
| author | Robert Fuchs <robertfuchsyoshi@gmail.com> | 2019-07-26 15:14:44 -0400 |
|---|---|---|
| committer | Robert Fuchs <robertfuchsyoshi@gmail.com> | 2019-08-21 13:27:56 -0500 |
| commit | 5f9ed1979d5fe1294e297cfe3e9e98cace9c1186 (patch) | |
| tree | afbb08e9444a8961cf4ca56d2924f1cc0344c1ea /modules/webrtc/webrtc_data_channel.cpp | |
| parent | e4ec59b6ae7ba4da8a57d35a4763192fd84fa358 (diff) | |
| download | redot-engine-5f9ed1979d5fe1294e297cfe3e9e98cace9c1186.tar.gz | |
Allow setting buffer size of WebRTCDataChannel
Diffstat (limited to 'modules/webrtc/webrtc_data_channel.cpp')
| -rw-r--r-- | modules/webrtc/webrtc_data_channel.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/webrtc/webrtc_data_channel.cpp b/modules/webrtc/webrtc_data_channel.cpp index 2bd30e68f5..7b3843410a 100644 --- a/modules/webrtc/webrtc_data_channel.cpp +++ b/modules/webrtc/webrtc_data_channel.cpp @@ -29,6 +29,7 @@ /*************************************************************************/ #include "webrtc_data_channel.h" +#include "core/project_settings.h" void WebRTCDataChannel::_bind_methods() { ClassDB::bind_method(D_METHOD("poll"), &WebRTCDataChannel::poll); @@ -58,6 +59,7 @@ void WebRTCDataChannel::_bind_methods() { } WebRTCDataChannel::WebRTCDataChannel() { + _in_buffer_shift = nearest_shift((int)GLOBAL_GET(WRTC_IN_BUF) - 1) + 10; } WebRTCDataChannel::~WebRTCDataChannel() { |
