added todos
This commit is contained in:
parent
c225a3e27c
commit
a9fe745fd7
1 changed files with 4 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue