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++
674 B
Raw Blame
#include "veyra/sink/CaptureAudioDsp.h"
extern "C" {
#include <libswresample/swresample.h>
}
namespace veyra::sink {
int CaptureRateCorrection::prepare(SwrContext* context,bool automatic){
    if(!automatic&&!prepared_)return 0;
    const int result=swr_set_compensation(context,0,0);
    if(result>=0)prepared_=true;
    return result;
}
int CaptureRateCorrection::set(SwrContext* context,int delta,int distance){
    // A newly enabled auto mode must prepare before playback, not hot-switch
    // from identity halfway through a continuous PCM stream.
    if(!prepared_)return delta?AVERROR(EINVAL):0;
    return swr_set_compensation(context,delta,delta?distance:0);
}
}