Add initial project files and implement basic audio-visual recording functionality

This commit is contained in:
John
2026-03-12 18:53:47 +05:30
parent 0327abb1a0
commit eaa678262c
10 changed files with 153 additions and 105 deletions

View File

@@ -96,6 +96,9 @@ private:
/** Called every frame on the render thread when the back buffer is ready. */
void OnBackBufferReady(SWindow& SlateWindow, const FTextureRHIRef& BackBuffer);
/** Launches the FFmpeg video pipe with the actual back-buffer dimensions. */
bool LaunchFFmpegVideoPipe();
/** Writes the captured audio buffer to a .wav file. */
void SaveAudioToWav();
@@ -108,6 +111,7 @@ private:
// Video
FDelegateHandle BackBufferDelegateHandle;
FILE* FFmpegVideoPipe = nullptr;
bool bFFmpegStarted = false;
// Audio — accumulated raw PCM data
TArray<float> AudioBuffer; // interleaved float samples