Use XrTime for all time data

This commit is contained in:
Patrick Nicolas
2024-03-24 14:01:44 +01:00
parent f951034de4
commit 8e3979cc8c
11 changed files with 47 additions and 63 deletions
+1 -1
View File
@@ -336,7 +336,7 @@ struct pulse_device : public audio_device
remainder = size % sample_size; // data to keep for next iteration
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();
packet.timestamp = session.get_offset().to_headset(os_monotonic_get_ns());
session.send_stream(packet);
// put the remaining data at the beginning of the buffer
memmove(buffer.data(), buffer.data() + size, remainder);