+ if live_signal_num == preview_signal_num then
+ -- Nothing to do.
+ return
+ end
+
+ if (live_signal_num == 0 and preview_signal_num == 1) or
+ (live_signal_num == 1 and preview_signal_num == 0) then
+ -- We can't zoom between these. Just make a cut.
+ io.write("Cutting from " .. live_signal_num .. " to " .. live_signal_num .. "\n")
+ local temp = live_signal_num
+ live_signal_num = preview_signal_num
+ preview_signal_num = temp
+ return
+ end
+
+ if live_signal_num == 2 and preview_signal_num == 1 then
+ io.write("NOT SUPPORTED YET\n")
+ return
+ end
+
+ if live_signal_num == 2 and preview_signal_num == 0 then
+ -- Zoom in from SBS to single.
+ zoom_start = t
+ zoom_end = t + 1.0
+ zoom_src = 0.0
+ zoom_dst = 1.0
+ preview_signal_num = 2
+ elseif live_signal_num == 0 and preview_signal_num == 2 then
+ -- Zoom out from single to SBS.
+ zoom_start = t
+ zoom_end = t + 1.0
+ zoom_src = 1.0
+ zoom_dst = 0.0
+ preview_signal_num = 0
+ live_signal_num = 2
+ end
+ end