Hacker News new | ask | show | jobs
by feeboo 3122 days ago
I also thougth about this problem. Current playlist implementations are seriously lacking when you move your library. I have some shell scripts here that just replace parts of the path in the playlists.

I looked at your playlist format specs, why do you use floats? I'm currently coding on a GO audioserver and save time intervals as Nanoseconds (time.Duration). This makes more sense to me, as floats may behave badly in some contexts.

1 comments

I use floats because it's most natural to represent duration in time. Nanoseconds are going to be about as lossy as floats too, I guess (although for a different reason). If you're going for maximum accuracy, you'd need to represent the duration as the number of samples.

I wonder if floats are going to be a significant problem, hmm.