Add support for authentication and encryption

This commit is contained in:
Guillaume Meunier
2024-11-26 23:59:35 +01:00
committed by Patrick Nicolas
parent 447b77c35c
commit c6e773fd22
45 changed files with 1516 additions and 455 deletions
+6 -7
View File
@@ -305,15 +305,14 @@ void pipewire_device::speaker_process(void * self_v)
if (not data.data)
return;
audio_data packet{
.timestamp = self->session.get_offset().to_headset(os_monotonic_get_ns()),
.payload = std::span(
(uint8_t *)data.data + data.chunk->offset,
data.chunk->size),
};
try
{
self->session.send_control(packet);
self->session.send_control(audio_data{
.timestamp = self->session.get_offset().to_headset(os_monotonic_get_ns()),
.payload = std::span(
(uint8_t *)data.data + data.chunk->offset,
data.chunk->size),
});
}
catch (std::exception & e)
{