Using the streamsense library that came with the download (which included the docs).
Fixed the position/duration problems.