Fixed conversion from seconds to milliseconds
Change as_sample_format and add test for the sizes
Allow to use a stream without a callback

Also improved read and write functions
Added stream.open and added the finished callback
Forget the pointer in the finished callback
Change some use statements