use a ring buffer for the client : the player side is in now working in a different thread than the data reception thread