Skip to content

Bring PS5 GTA6 to 120FPS with DLSS 5. An advanced Windows video player and capture enhancement tool featuring real-time preview for videos, images, and capture card sources. Combine AI-powered Super Resolution, DLSS5 image enhancement, and Frame Generation to deliver a next-generation visual experience.

C++
1.2 KB
Raw Blame

    // ---- capture audio choice survives a restart (run twice with the same out dir) ---------
    // MODE=pick: choose the first WASAPI input and connect.  MODE=check: report the choice.
    Timer { interval: 150; running: true; repeat: true; onTriggered: veyra.logUi("uitest-tick", "") }
    Timer {
        interval: 1000; running: true; repeat: true
        property int ticks: 0
        onTriggered: {
            ++ticks
            if (ticks === 2) dialogs.open("capture")
            if (ticks === 5) {
                const inputs = veyra.captureAudioInputs
                veyra.logUi("uitest", "UITEST_NOTE choice=" + veyra.captureAudioChoice + " inputs=" + inputs.map(i => i.id + ":" + i.label).join(" | "))
                if ("@MODE@" === "pick") {
                    const w = inputs.find(i => i.label.indexOf("[WASAPI]") === 0)
                    if (w) veyra.captureAudioChoice = w.id
                    veyra.logUi("uitest", "UITEST_NOTE picked=" + veyra.captureAudioChoice)
                    veyra.startCaptureSession(); dialogs.close()
                }
            }
            if (ticks === 9) { veyra.logUi("uitest", "UITEST_DONE"); running = false }
        }
    }