Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let mutable currInput = ref (createMagicArray ())
- let rec updateCurrentFrameInfo () =
- async {
- let line = file.ReadLine() // hope we are faster to read than to process frames with DSP
- let mas = line.Split [|' '|]
- let tmp = Array.init MagicSize <| fun i ->
- { r = 0xFF &&& (int mas.[i + 3] >>> 16)
- g = 0xFF &&& (int mas.[i + 3] >>> 8)
- b = 0xFF &&& int mas.[i + 3] }
- // ??????????????? ref ???????????????
- currInput := tmp // no explicit lock
- do! updateCurrentFrameInfo()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement