diff options
Diffstat (limited to 'src/GodotDataChannelObserver.cpp')
-rw-r--r-- | src/GodotDataChannelObserver.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/GodotDataChannelObserver.cpp b/src/GodotDataChannelObserver.cpp index 081c868..7a6cf96 100644 --- a/src/GodotDataChannelObserver.cpp +++ b/src/GodotDataChannelObserver.cpp @@ -1,12 +1,12 @@ -#include "WebRTCPeer.hpp" +#include "WebRTCLibPeer.hpp" using namespace godot_webrtc; -WebRTCPeer::GodotDCO::GodotDCO(WebRTCPeer *parent) { +WebRTCLibPeer::GodotDCO::GodotDCO(WebRTCLibPeer *parent) { this->parent = parent; } -void WebRTCPeer::GodotDCO::OnMessage(const webrtc::DataBuffer &buffer) { +void WebRTCLibPeer::GodotDCO::OnMessage(const webrtc::DataBuffer &buffer) { const uint8_t *data = buffer.data.data<uint8_t>(); uint8_t *memory_controlled_buffer = new uint8_t[buffer.data.size()]; @@ -14,6 +14,6 @@ void WebRTCPeer::GodotDCO::OnMessage(const webrtc::DataBuffer &buffer) { parent->queue_packet(memory_controlled_buffer, buffer.data.size()); }; -void WebRTCPeer::GodotDCO::OnStateChange(){}; +void WebRTCLibPeer::GodotDCO::OnStateChange(){}; -void WebRTCPeer::GodotDCO::OnBufferedAmountChange(uint64_t previous_amount){}; +void WebRTCLibPeer::GodotDCO::OnBufferedAmountChange(uint64_t previous_amount){}; |