@@ 556,19 556,18 @@ functor TransposedBlockStreamFn (S : BLO
case upstream of
NONE => NONE
| SOME upstream =>
- let val time = S.time upstream
- in
- case SeqMisc.unfoldln S.read (blocksize, upstream) of
- ([], _) => NONE
- | (blocks, sopt) =>
- SOME ({ rate = rate,
- channels = channels,
- blocksize = blocksize,
- time = time,
- upstream = sopt
- },
- M.fromColumns (map (fn m => M.row (m, 0)) blocks))
- end
+ case SeqMisc.unfoldln S.read (blocksize, upstream) of
+ ([], _) => NONE
+ | (blocks, sopt) =>
+ SOME ({ rate = rate,
+ channels = channels,
+ blocksize = blocksize,
+ time = case sopt of
+ NONE => time
+ | SOME s' => S.time s',
+ upstream = sopt
+ },
+ M.fromColumns (map (fn m => M.row (m, 0)) blocks))
fun foldl f = BlockStreamFolder.makeFoldl (read, f)