added todos

This commit is contained in:
study-faraphel 2025-01-04 14:07:49 +01:00
parent c225a3e27c
commit a9fe745fd7

View file

@ -39,7 +39,9 @@ class MasterRole(base.BaseRole):
self.chunks = make_chunks(self.audio, self.chunk_duration.total_seconds() * 1000)
def handle(self):
def handle(self) -> None:
# TODO(Faraphel): communicate with chrony to add peers and enable server mode ?
# TODO(Faraphel): share the secret key generated with the other *allowed* peers ! How to select them ? A file ?
# TODO(Faraphel): check if another server is emitting sound in the network. Return to undefined if yes
# get the next chunk
@ -47,6 +49,7 @@ class MasterRole(base.BaseRole):
# broadcast it in the network
audio_packet = AudioPacket(
# TODO(Faraphel): adjust time depending on the network average latency ?
datetime.now() + timedelta(seconds=5), # play it in some seconds to let all the machines get the sample
chunk.channels,
chunk.frame_rate,