cleanup timing functions
fix constant type in alsa sink
rework player: first packet may not have sync