Paradies Project
Loading...
Searching...
No Matches
UAudioSettingsSubsystem Class Reference

오디오 설정을 RAM에서 관리하고 디스크 저장/로드를 담당하는 서브시스템입니다. More...

#include <AudioSettingsSubsystem.h>

Inheritance diagram for UAudioSettingsSubsystem:
Inheritance graph
Collaboration diagram for UAudioSettingsSubsystem:
Collaboration graph

Public Member Functions

virtual void Initialize (FSubsystemCollectionBase &Collection) override
 서브시스템 초기화 시 저장된 볼륨을 디스크에서 로드합니다.
virtual void Deinitialize () override
float GetBGMVolume () const
 현재 BGM 볼륨을 가져옵니다 (RAM).
float GetSFXVolume () const
 현재 SFX 볼륨을 가져옵니다 (RAM).
void SetBGMVolume (float NewVolume)
 BGM 볼륨을 RAM에 설정합니다 (디스크 저장 안 함).
void SetSFXVolume (float NewVolume)
 SFX 볼륨을 RAM에 설정합니다 (디스크 저장 안 함).
void ApplyVolumeSettings ()
 현재 RAM의 볼륨 값을 사운드 시스템에 즉시 적용합니다.
void SaveToSlot ()
 현재 RAM에 있는 볼륨 값을 디스크에 저장합니다.
void LoadFromSlot ()
 디스크에서 저장된 볼륨 값을 RAM으로 로드합니다.

Public Attributes

TObjectPtr< USoundMix > MasterSoundMix = nullptr
 SoundMix 참조 (GameInstance에서 주입됨).
TObjectPtr< USoundClass > BGMSoundClass = nullptr
 BGM 사운드 클래스 참조 (GameInstance에서 주입됨).
TObjectPtr< USoundClass > SFXSoundClass = nullptr
 SFX 사운드 클래스 참조 (GameInstance에서 주입됨).

Detailed Description

오디오 설정을 RAM에서 관리하고 디스크 저장/로드를 담당하는 서브시스템입니다.

GameInstance의 수정 없이 OCP를 준수하며, 슬라이더 드래그 시 RAM만 변경하고 팝업 닫힐 때 디스크에 1회 저장합니다.

Member Function Documentation

◆ ApplyVolumeSettings()

void UAudioSettingsSubsystem::ApplyVolumeSettings ( )

현재 RAM의 볼륨 값을 사운드 시스템에 즉시 적용합니다.

게임 시작 시 저장된 볼륨을 복원할 때 사용합니다.

◆ GetBGMVolume()

float UAudioSettingsSubsystem::GetBGMVolume ( ) const
inline

현재 BGM 볼륨을 가져옵니다 (RAM).

Returns
0.0 ~ 1.0 범위의 볼륨 값
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetSFXVolume()

float UAudioSettingsSubsystem::GetSFXVolume ( ) const
inline

현재 SFX 볼륨을 가져옵니다 (RAM).

Returns
0.0 ~ 1.0 범위의 볼륨 값
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Initialize()

void UAudioSettingsSubsystem::Initialize ( FSubsystemCollectionBase & Collection)
overridevirtual

서브시스템 초기화 시 저장된 볼륨을 디스크에서 로드합니다.

GameInstance::Init() 이후 자동으로 호출됩니다.

저장된 볼륨 로드

Here is the call graph for this function:

◆ LoadFromSlot()

void UAudioSettingsSubsystem::LoadFromSlot ( )

디스크에서 저장된 볼륨 값을 RAM으로 로드합니다.

Initialize()에서 자동 호출되며, 수동 호출도 가능합니다.

Here is the caller graph for this function:

◆ SaveToSlot()

void UAudioSettingsSubsystem::SaveToSlot ( )

현재 RAM에 있는 볼륨 값을 디스크에 저장합니다.

설정 팝업이 닫힐 때(NativeDestruct) 딱 1회만 호출되어야 합니다.

◆ SetBGMVolume()

void UAudioSettingsSubsystem::SetBGMVolume ( float NewVolume)

BGM 볼륨을 RAM에 설정합니다 (디스크 저장 안 함).

Parameters
NewVolume0.0 ~ 1.0 범위의 새 볼륨 값

슬라이더 드래그 시 호출되며, 디스크 I/O는 발생하지 않습니다.

◆ SetSFXVolume()

void UAudioSettingsSubsystem::SetSFXVolume ( float NewVolume)

SFX 볼륨을 RAM에 설정합니다 (디스크 저장 안 함).

Parameters
NewVolume0.0 ~ 1.0 범위의 새 볼륨 값

슬라이더 드래그 시 호출되며, 디스크 I/O는 발생하지 않습니다.


The documentation for this class was generated from the following files:
  • Source/Paradise/Public/Framework/System/AudioSettingsSubsystem.h
  • Source/Paradise/Private/Framework/System/AudioSettingsSubsystem.cpp