[FIX] Adapted the sam/bam module to new stream modul.

is that correct here? -1 and 2147483647 are not even close in __int32 representation.