diff --git a/source/behaviors/roles/MasterRole.py b/source/behaviors/roles/MasterRole.py index 6b71f72..1544dba 100644 --- a/source/behaviors/roles/MasterRole.py +++ b/source/behaviors/roles/MasterRole.py @@ -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,