* Add data_rem() that returns the amount of data left to buffer. This prevents the buffering thread to endlessly try to fill the buffer when nothing is available to fill it with.
* Add a remove_thread() call to end the playbck thread.
* Make the reading faster.
Now it works well on the sim: it buffers the files and reads them progressively, and the MD5sums are correct. I still have to test on target.
Currently it only has one file in the buffere at a time.
git-svn-id: svn://jdgordon.mine.nu/mob@44 9862a28c-4e93-4879-ac26-10afcf840a8f