// Two independent reproducible sources. Pairing does not synchronize exposure.
// For real cameras replace each constructor with a distinct device locator.
import aner.video

let left = video.synthetic(width: 160, height: 120, frames: 8)
let right = video.synthetic(width: 160, height: 120, frames: 8)
let a = video.frame_slot()
let b = video.frame_slot()
while left.read_into(a) == "ready" {
    if right.read_into(b) == "ready" {
        print(a.source_id())
        print(b.source_id())
        print(a.sequence())
        print(b.sequence())
    }
}
left.close()
right.close()
