You've already forked godot
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user