mirror of
https://github.com/WiVRn/WiVRn.git
synced 2026-11-21 17:41:54 -08:00
Move audio out to UDP
This commit is contained in:
1 parent
7278a522b8
commit
3076c50fbf
1 file changed
+1
-1
@@ -337,7 +337,7 @@ struct pulse_device : public audio_device
|
||||
size -= remainder; // size of data to send
|
||||
packet.payload = std::span<uint8_t>(buffer.begin(), size);
|
||||
packet.timestamp = session.get_offset().to_headset(os_monotonic_get_ns()).count();
|
||||
session.send_control(packet);
|
||||
session.send_stream(packet);
|
||||
U_LOG_I("sendo audio: %zu bytes", packet.payload.size_bytes());
|
||||
// put the remaining data at the beginning of the buffer
|
||||
memmove(buffer.data(), buffer.data() + size, remainder);
|
||||
|
||||
Reference in new issue
Block a user