Unreal Integration 2.02
Types:
Methods:
Override the attenuation values from FMOD Studio.
struct FFMODAttenuationDetails
{
uint32 bOverrideAttenuation;
float MinimumDistance;
float MaximumDistance;
};
These definitions describe built-in event properties.
enum Type
{
ChannelPriority,
ScheduleDelay,
ScheduleLookahead,
MinimumDistance,
MaximumDistance,
Count
};
Priority to set on low-level channels created by this event instance.
Schedule delay to synchronized playback for multiple tracks in DSP clocks, or -1 for default.
Schedule look-ahead on the timeline in DSP clocks, or -1 for default.
Override the event's 3D minimum distance, or -1 for default.
Override the event's 3D maximum distance, or -1 for default.
Which FMOD Studio system to use.
enum Type
{
Auditioning,
Runtime,
Editor,
Max
};
Occlusion details.
struct FFMODOcclusionDetails
{
bool bEnableOcclusion;
TEnumAsByte<enum ECollisionChannel> OcclusionTraceChannel;
bool bUseComplexCollisionForOcclusion;
}
Unreal defines 1 unit == 1cm, so convert to metres for Studio automatically.
#define FMOD_VECTOR_SCALE_DEFAULT 0.01f
Helper function to debug FMOD function calls.
void LogError(
FMOD_RESULT result,
const char *function
);
Helper function to convert from UE world axis to FMOD axis.
void Assign(
FMOD_VECTOR &Dest
const FVector &Src
);
void Assign(
FMOD_3D_ATTRIBUTES &Dest,
const FTransform &Src
);
Helper function to convert from UE world vector to FMOD vector.
FMOD_VECTOR ConvertWorldVector(
const FVector &Src
);
Helper function for converting unit vector to be used by FMOD.
FMOD_VECTOR ConvertUnitVector(
const FVector &Src
);
Helper function to convert from FMOD distance to UE scale.
float DistanceToUEScale(
float FMODDistance
);
Helper function to know if an object is audible in the world.
bool IsWorldAudible(
UWorld *World,
bool AllowInEditor
);
Helper function to convert from UE GUID to FMOD Studio ID.
FMOD::Studio::ID ConvertGuid(
const FGuid &UnrealGuid
);
Helper function to get UE GUID from an FMOD instanced object.
FGuid GetID(
StudioType *Instance
);
Helper function to get the path of an event.
FString GetPath(
StudioType *Instance
);
Helper function to return the name of an event using its Guid.
FString LookupNameFromGuid(
FMOD::Studio::System *StudioSystem,
const FGuid &Guid
);
FString LookupNameFromGuid(
FMOD::Studio::System *StudioSystem,
const FMOD::Studio::ID &Guid
);
Helper function to return the FMOD Studio Parameter as a string.
FString ParameterTypeToString(
FMOD_STUDIO_PARAMETER_TYPE Type
);