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.1 KB
Raw Blame
#pragma once
// Live recording takes the PCM the player renders - every source that plays
// through AudioRenderer: files, capture-card monitoring, PS5/Moonlight/Xbox
// streaming - before volume and mute, stamped with the steady-clock time at
// which its first frame reaches the endpoint. While no recording takes audio
// the renderer only reads one atomic flag.
#include <cstddef>
#include <cstdint>
#include <memory>
#include "veyra/sink/AudioFormat.h"

namespace veyra::sink {

class RecordingAudioSink {
public:
    virtual ~RecordingAudioSink()=default;
    // Audio owner thread: copy and return, never block. `renderer`
    // identifies the endpoint, so a second renderer can be ignored.
    virtual void renderedPcm(const float* interleaved,size_t frames,const AudioFormat& format,int64_t playoutUs,const void* renderer)=0;
};

// nullptr detaches. Any thread.
void setRecordingAudioSink(std::shared_ptr<RecordingAudioSink> sink);
bool recordingAudioActive();
std::shared_ptr<RecordingAudioSink> recordingAudioSink();
// The clock the recorder stamps video and audio with (steady_clock, µs).
int64_t recordingClockUs();

} // namespace veyra::sink