Operating System Simulator Plugin
3.5.1
Unreal Engine plugin that simulates an Operating System Environment
|
#include "OperatingSystemAudioFile.h"
Public Member Functions | |
UOperatingSystemAudioFile () | |
USoundBase * | GetAudio () const |
Retrieves the audio data represented by the audio file. | |
Public Member Functions inherited from UOperatingSystemFile | |
UOperatingSystemFile () | |
void | OpenFile (FGenericError &OutError) |
void | CloseFile () |
Closes the file and cleans up any associated resources. | |
FText | GetFileName (const bool bWithExtension=true) const |
FText | GetExtension () const |
bool | IsSameFile (const UOperatingSystemFile *OtherFile) const |
FORCEINLINE TSoftObjectPtr< UObject > | GetIconObject () const |
FORCEINLINE TScriptInterface< IOperatingSystemExplorerInterface > | GetExplorerInterface () const |
This method returns the TScriptInterface of the IOperatingSystemExplorer. | |
Protected Member Functions | |
virtual void | OnValidate (FGenericError &OutError) override |
Validates the audio file. | |
Protected Member Functions inherited from UOperatingSystemFile | |
UOperatingSystemFileIconWidget * | CreateIconWidget () |
void | K2_OnOpen () |
Protected Attributes | |
TSoftObjectPtr< USoundBase > | AudioFile |
Protected Attributes inherited from UOperatingSystemFile | |
FText | Name |
FText | Extension |
TSoftObjectPtr< UObject > | IconObject |
float | SpaceRequiredInMB |
uint8 | bIsDeletable: 1 |
uint8 | bIsMovable: 1 |
TSoftClassPtr< UOperatingSystemBaseProgram > | TargetProgramClass |
TSoftClassPtr< UOperatingSystemFileIconWidget > | IconWidgetClass |
TSoftClassPtr< UOperatingSystemFileWidget > | WidgetClass |
TWeakObjectPtr< UOperatingSystemBaseProgram > | ParentProgram |
TObjectPtr< UOperatingSystemFileWidget > | FileWidget |
TScriptInterface< IOperatingSystemExplorerInterface > | ParentExplorerInterface |
bool | bHasBlueprintOnOpen |
Additional Inherited Members | |
Static Public Member Functions inherited from UOperatingSystemFile | |
static UOperatingSystemFile * | CreateFile (TScriptInterface< IOperatingSystemExplorerInterface > ExplorerInterface, const TSoftClassPtr< UOperatingSystemFile > &FileSoftClass, FGenericError &OutError) |
Creates a new file in the operating system. | |
static UOperatingSystemFile * | CreateRuntimeFile (UOperatingSystemFile *ParentFile) |
Creates a runtime file based on the given parent file. | |
This class represents an audio file in the operating system. It is a child class of UOperatingSystemFile. It provides functionality to retrieve audio data represented by the file.
UOperatingSystemAudioFile::UOperatingSystemAudioFile | ( | ) |
USoundBase * UOperatingSystemAudioFile::GetAudio | ( | ) | const |
Retrieves the audio data represented by the audio file.
This method returns a pointer to the USoundBase object that represents the audio data of the audio file.
|
overrideprotectedvirtual |
Validates the audio file.
This method is called to validate the audio file. It checks if the audio file is null and sets an error if it is.
OutError | The error object to set if the audio file is null. |
Reimplemented from UOperatingSystemFile.
|
protected |
Audio to play.