refactored buffer filling more
can now loop streams
refactored more, now the streaming inherited function is actually quite
nice
now using sample index instead of buffer index. code is even more neat