1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Allow setting buffer size of WebRTCDataChannel

This commit is contained in:
Robert Fuchs
2019-07-26 15:14:44 -04:00
parent e4ec59b6ae
commit 5f9ed1979d
4 changed files with 14 additions and 1 deletions

View File

@@ -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() {