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

@@ -1,8 +1,23 @@
// Copyright Epic Games, Inc. All Rights Reserved.
#include "AudioVideoRecordGameMode.h"
#include "Kismet/GameplayStatics.h"
#include "Components/AudioComponent.h"
AAudioVideoRecordGameMode::AAudioVideoRecordGameMode()
{
// stub
}
void AAudioVideoRecordGameMode::BeginPlay()
{
Super::BeginPlay();
if (BGMSound)
{
BGMAudioComponent = UGameplayStatics::SpawnSound2D(this, BGMSound, BGMVolume);
if (BGMAudioComponent)
{
BGMAudioComponent->bAutoDestroy = false;
}
}
}