eulersson / taconez

Sound warfare against your upper neighbour's high heel walks. AI IoT Raspberry Pi powered solution to detect, analyse, plot and react against them.
Apache License 2.0
0 stars 0 forks source link

Parametrize the amount of time the player considers a received sound still valid #97

Open eulersson opened 9 months ago

eulersson commented 9 months ago

A sluggish network might cause delays on message deliveries. If the distributor sends messages to the players asking to play a sound, and the player receives it after a looooong time (10 seconds or more) after the original timestamp that the message should be played at, then the player should drop the message.

This at the moment is set to 10 seconds, but ideally it would be nice to parametrize it as an environment variable.

https://github.com/eulersson/taconez/blob/6bd34486a00cd8f75cc597ee1971b9543cf7a7b8/sound-player/src/process_loop.c#L40