Files
UnrealEngineUWP/Engine/Source/Runtime/LiveLinkAnimationCore/Private/LiveLinkInstance.cpp

55 lines
1.3 KiB
C++
Raw Normal View History

// Copyright Epic Games, Inc. All Rights Reserved.
Copying //UE4/Dev-AnimPhys to //UE4/Dev-Main (Source: //UE4/Dev-AnimPhys @ 3720885) #lockdown Nick.Penwarden #rb none ============================ MAJOR FEATURES & CHANGES ============================ Change 3627179 by Aaron.McLeran Optimizing active sound by not processing active sounds if they are out of range. Allowing virtualized sounds to be exempt. Licensee says they saw a 6x improvement on active sound calculations in audio thread with this change. Change 3640144 by Aaron.McLeran #jira UE-49409 Attenuation focus audio tests on TM-AnimPhys on Cooked mac doesn't play any audio Fixing the recent optimization to not play active sounds in range. Code attempts to check if there's any possibility for a sound to have it's distance affected before trying to prune by max distance. Change 3686191 by James.Cobbett Fixing Shape_Cube to have just one simple box collision instead of 3 primitives Change 3688873 by Danny.Bouimad Fixing TM-AnimPhys test content Change 3689715 by Aaron.McLeran Removing temp logging Change 3692323 by Lina.Halper Fixed crash when attached to no collision parent, causes crash on changing collision settings. Change 3692526 by Lina.Halper Fix issue where attach to any socket causes snapping Change 3692975 by Aaron.McLeran Lib opus tps file Change 3693083 by Ethan.Geller #jira UE-51183 Fix Attenuation Settings reverb display names. [Dev-AnimPhys] Change 3695627 by Aaron.McLeran Allowing multiple plugin settings so users can have different settings for different plugins. Change 3697996 by Aaron.McLeran #jira UE-51301 Fixing compile error for BP with changes to using array settings for plugins Change 3698787 by Aaron.McLeran Checking in missing file Change 3707260 by Aaron.McLeran #jira UE-51476 Adding ability to get envelope follower delegates to audio components and synth components. - added ability to propogate up the envelope follower values from audio source manager/renderer to BP - added 2 modes to get data for audio components: per-source/soundwave and a multi/aggregate callback for cases where multiple sources play for a given active sound/audio component. - added ability to parameterize the envelope follower for an audio component, giving the attack/release time of the envelope follower - added wrapper around callback to propogate to synth components - only works (of course) in audio mixer Change 3709356 by Martin.Wilson Allow native anim instances to be set on skeletal mesh components Change 3709360 by Martin.Wilson Live Link integration into Persona - Creation of preview controllers in Persona, allow customization of preview scene - Original hard coded preview animation modes refactored into preview controllers and details customization reworks to allow selection of these - Created live link preview controller that allows driving character from live link subject - Added the ability to override the camera controller of an animation preview scene - created live link camera controller to drive camera based on data from live link Change 3709859 by Martin.Wilson CIS Fix Change 3711658 by Aaron.McLeran PR #4134: Steam Audio Beta 10 (Contributed by freemancw) Change 3711882 by Aaron.McLeran Integrating CL 3701738 from 4.18 to Dev-AnimPhys Change 3711913 by Aaron.McLeran Integrating CL 3705882 to Dev-AnimPhys Change 3711918 by Aaron.McLeran Integrating CL 3707149 and CL 3708254 from 4.18 to Dev-AnimPhys Change 3711972 by Aaron.McLeran Fixing synth components after integration issue. - Can't access audio components in constructor anymore. Change 3713090 by Thomas.Sarkanen Switch to using PhysXIncludes.h to avoid issues with Linux/HTML5 c-linkage errors Change 3713115 by Laurent.Delayen AnimDistanceMatching plugin framework. (Just a functional empty plugin to build from) Change 3713418 by Laurent.Delayen Added AnimDistanceMatching empty project to Samples/Showcases Change 3714439 by Aaron.McLeran Changes to synth component and procedural sound waves with audio mixer. - Added callbacks for initiating procedural sound wave generation and ending it, so we can get proper pre- and post- hooks for DSP processes which need it. - Added a constructor for procedural sound waves so it doesn't cause a hang during hotload Change 3714444 by Aaron.McLeran #jira UE-51471 Adding a microphone component. - Gets audio directly from a microphone, renders it in a synth component for in-game microphone audio rendering. - Movnig RtAudio lib to AudioCapture plugin, along with AudioRecordingManager (used by sequencer recorder) - Also moved audio recording manager to an editor plugin - Created new runtime plugin "audio capture" which is needed for audio capture component. Future capture-related features will go in this plugin. - Updated RtAudio version to v 5. Change 3715101 by Aaron.McLeran Integrating CL 3715055 from FN to Dev-AnimPhys #UE4 Fix to actually use the precached streaming audio DDC data when cooking. Change 3716473 by Aaron.McLeran #jira UE-51560 Fixing RtAudio compile error Change 3718096 by Jurre.deBaare GeomCache Alembic no longer renders correctly #fix serialization path was incorrect, reading incorrect FDynamicMeshVertex layout from pre-change files #jira UE-51592 Change 3718254 by Nick.Shin HTML5 CIS warning fix bringing over //UE4/Main's version to //UE4/AnimPhys .../Engine/Source/ThirdParty/PhysX{3}/PhysX_3.4/Include/PxPhysics.h #jira none Change 3718647 by Martin.Wilson Static analysis fix #jira UE-51599 Change 3719638 by Aaron.McLeran #jira UE-51598 Fixing static analysis warning. not 100% sure if this fixes it, but I ran MSVC static analysis locally and it seems to have not triggered it. Change 3720334 by Aaron.McLeran #jira UE-51620 Fix for hang during multi-PIE shutdown when using a synth component. Change 3355932 by Thomas.Sarkanen Back out changelist 3354003 Reinstating merge from Main: Merging //UE4/Dev-Main to Dev-AnimPhys (//UE4/Dev-AnimPhys) @ CL 3353839 Change 3698735 by Aaron.McLeran Adding ability for synth initialization to modify the requested sample rate - This was needed so that some synth component types can modify the sample rate easily after calling init (e.g. a microphone will want to tell the synth what sample rate it should initialize with). - It's also possible for a synth init to fail (again for mic component, this could fail if mic capture isn't supported for a platform or there is a problem with a device, etc) Change 3702404 by Thomas.Sarkanen Copying //UE4/Dev-Physics-Upgrade to Dev-AnimPhys (//UE4/Dev-AnimPhys) @ CL 3702362 Change 3703019 by Jurre.deBaare HLOD with texture binning on introduces ugly black seams #fix ensure that we ouput importance values according to baked out materials rather than per-section #jira UE-51426 [CL 3720923 by Thomas Sarkanen in Main branch]
2017-10-26 09:50:05 -04:00
#include "LiveLinkInstance.h"
#include UE_INLINE_GENERATED_CPP_BY_NAME(LiveLinkInstance)
Copying //UE4/Dev-AnimPhys to //UE4/Dev-Main (Source: //UE4/Dev-AnimPhys @ 3720885) #lockdown Nick.Penwarden #rb none ============================ MAJOR FEATURES & CHANGES ============================ Change 3627179 by Aaron.McLeran Optimizing active sound by not processing active sounds if they are out of range. Allowing virtualized sounds to be exempt. Licensee says they saw a 6x improvement on active sound calculations in audio thread with this change. Change 3640144 by Aaron.McLeran #jira UE-49409 Attenuation focus audio tests on TM-AnimPhys on Cooked mac doesn't play any audio Fixing the recent optimization to not play active sounds in range. Code attempts to check if there's any possibility for a sound to have it's distance affected before trying to prune by max distance. Change 3686191 by James.Cobbett Fixing Shape_Cube to have just one simple box collision instead of 3 primitives Change 3688873 by Danny.Bouimad Fixing TM-AnimPhys test content Change 3689715 by Aaron.McLeran Removing temp logging Change 3692323 by Lina.Halper Fixed crash when attached to no collision parent, causes crash on changing collision settings. Change 3692526 by Lina.Halper Fix issue where attach to any socket causes snapping Change 3692975 by Aaron.McLeran Lib opus tps file Change 3693083 by Ethan.Geller #jira UE-51183 Fix Attenuation Settings reverb display names. [Dev-AnimPhys] Change 3695627 by Aaron.McLeran Allowing multiple plugin settings so users can have different settings for different plugins. Change 3697996 by Aaron.McLeran #jira UE-51301 Fixing compile error for BP with changes to using array settings for plugins Change 3698787 by Aaron.McLeran Checking in missing file Change 3707260 by Aaron.McLeran #jira UE-51476 Adding ability to get envelope follower delegates to audio components and synth components. - added ability to propogate up the envelope follower values from audio source manager/renderer to BP - added 2 modes to get data for audio components: per-source/soundwave and a multi/aggregate callback for cases where multiple sources play for a given active sound/audio component. - added ability to parameterize the envelope follower for an audio component, giving the attack/release time of the envelope follower - added wrapper around callback to propogate to synth components - only works (of course) in audio mixer Change 3709356 by Martin.Wilson Allow native anim instances to be set on skeletal mesh components Change 3709360 by Martin.Wilson Live Link integration into Persona - Creation of preview controllers in Persona, allow customization of preview scene - Original hard coded preview animation modes refactored into preview controllers and details customization reworks to allow selection of these - Created live link preview controller that allows driving character from live link subject - Added the ability to override the camera controller of an animation preview scene - created live link camera controller to drive camera based on data from live link Change 3709859 by Martin.Wilson CIS Fix Change 3711658 by Aaron.McLeran PR #4134: Steam Audio Beta 10 (Contributed by freemancw) Change 3711882 by Aaron.McLeran Integrating CL 3701738 from 4.18 to Dev-AnimPhys Change 3711913 by Aaron.McLeran Integrating CL 3705882 to Dev-AnimPhys Change 3711918 by Aaron.McLeran Integrating CL 3707149 and CL 3708254 from 4.18 to Dev-AnimPhys Change 3711972 by Aaron.McLeran Fixing synth components after integration issue. - Can't access audio components in constructor anymore. Change 3713090 by Thomas.Sarkanen Switch to using PhysXIncludes.h to avoid issues with Linux/HTML5 c-linkage errors Change 3713115 by Laurent.Delayen AnimDistanceMatching plugin framework. (Just a functional empty plugin to build from) Change 3713418 by Laurent.Delayen Added AnimDistanceMatching empty project to Samples/Showcases Change 3714439 by Aaron.McLeran Changes to synth component and procedural sound waves with audio mixer. - Added callbacks for initiating procedural sound wave generation and ending it, so we can get proper pre- and post- hooks for DSP processes which need it. - Added a constructor for procedural sound waves so it doesn't cause a hang during hotload Change 3714444 by Aaron.McLeran #jira UE-51471 Adding a microphone component. - Gets audio directly from a microphone, renders it in a synth component for in-game microphone audio rendering. - Movnig RtAudio lib to AudioCapture plugin, along with AudioRecordingManager (used by sequencer recorder) - Also moved audio recording manager to an editor plugin - Created new runtime plugin "audio capture" which is needed for audio capture component. Future capture-related features will go in this plugin. - Updated RtAudio version to v 5. Change 3715101 by Aaron.McLeran Integrating CL 3715055 from FN to Dev-AnimPhys #UE4 Fix to actually use the precached streaming audio DDC data when cooking. Change 3716473 by Aaron.McLeran #jira UE-51560 Fixing RtAudio compile error Change 3718096 by Jurre.deBaare GeomCache Alembic no longer renders correctly #fix serialization path was incorrect, reading incorrect FDynamicMeshVertex layout from pre-change files #jira UE-51592 Change 3718254 by Nick.Shin HTML5 CIS warning fix bringing over //UE4/Main's version to //UE4/AnimPhys .../Engine/Source/ThirdParty/PhysX{3}/PhysX_3.4/Include/PxPhysics.h #jira none Change 3718647 by Martin.Wilson Static analysis fix #jira UE-51599 Change 3719638 by Aaron.McLeran #jira UE-51598 Fixing static analysis warning. not 100% sure if this fixes it, but I ran MSVC static analysis locally and it seems to have not triggered it. Change 3720334 by Aaron.McLeran #jira UE-51620 Fix for hang during multi-PIE shutdown when using a synth component. Change 3355932 by Thomas.Sarkanen Back out changelist 3354003 Reinstating merge from Main: Merging //UE4/Dev-Main to Dev-AnimPhys (//UE4/Dev-AnimPhys) @ CL 3353839 Change 3698735 by Aaron.McLeran Adding ability for synth initialization to modify the requested sample rate - This was needed so that some synth component types can modify the sample rate easily after calling init (e.g. a microphone will want to tell the synth what sample rate it should initialize with). - It's also possible for a synth init to fail (again for mic component, this could fail if mic capture isn't supported for a platform or there is a problem with a device, etc) Change 3702404 by Thomas.Sarkanen Copying //UE4/Dev-Physics-Upgrade to Dev-AnimPhys (//UE4/Dev-AnimPhys) @ CL 3702362 Change 3703019 by Jurre.deBaare HLOD with texture binning on introduces ugly black seams #fix ensure that we ouput importance values according to baked out materials rather than per-section #jira UE-51426 [CL 3720923 by Thomas Sarkanen in Main branch]
2017-10-26 09:50:05 -04:00
void FLiveLinkInstanceProxy::Initialize(UAnimInstance* InAnimInstance)
{
FAnimInstanceProxy::Initialize(InAnimInstance);
// initialize node manually
FAnimationInitializeContext InitContext(this);
PoseNode.Initialize_AnyThread(InitContext);
}
void FLiveLinkInstanceProxy::PreUpdate(UAnimInstance* InAnimInstance, float DeltaSeconds)
{
Super::PreUpdate(InAnimInstance, DeltaSeconds);
if (PoseNode.HasPreUpdate())
{
PoseNode.PreUpdate(InAnimInstance);
}
}
Copying //UE4/Dev-AnimPhys to //UE4/Dev-Main (Source: //UE4/Dev-AnimPhys @ 3720885) #lockdown Nick.Penwarden #rb none ============================ MAJOR FEATURES & CHANGES ============================ Change 3627179 by Aaron.McLeran Optimizing active sound by not processing active sounds if they are out of range. Allowing virtualized sounds to be exempt. Licensee says they saw a 6x improvement on active sound calculations in audio thread with this change. Change 3640144 by Aaron.McLeran #jira UE-49409 Attenuation focus audio tests on TM-AnimPhys on Cooked mac doesn't play any audio Fixing the recent optimization to not play active sounds in range. Code attempts to check if there's any possibility for a sound to have it's distance affected before trying to prune by max distance. Change 3686191 by James.Cobbett Fixing Shape_Cube to have just one simple box collision instead of 3 primitives Change 3688873 by Danny.Bouimad Fixing TM-AnimPhys test content Change 3689715 by Aaron.McLeran Removing temp logging Change 3692323 by Lina.Halper Fixed crash when attached to no collision parent, causes crash on changing collision settings. Change 3692526 by Lina.Halper Fix issue where attach to any socket causes snapping Change 3692975 by Aaron.McLeran Lib opus tps file Change 3693083 by Ethan.Geller #jira UE-51183 Fix Attenuation Settings reverb display names. [Dev-AnimPhys] Change 3695627 by Aaron.McLeran Allowing multiple plugin settings so users can have different settings for different plugins. Change 3697996 by Aaron.McLeran #jira UE-51301 Fixing compile error for BP with changes to using array settings for plugins Change 3698787 by Aaron.McLeran Checking in missing file Change 3707260 by Aaron.McLeran #jira UE-51476 Adding ability to get envelope follower delegates to audio components and synth components. - added ability to propogate up the envelope follower values from audio source manager/renderer to BP - added 2 modes to get data for audio components: per-source/soundwave and a multi/aggregate callback for cases where multiple sources play for a given active sound/audio component. - added ability to parameterize the envelope follower for an audio component, giving the attack/release time of the envelope follower - added wrapper around callback to propogate to synth components - only works (of course) in audio mixer Change 3709356 by Martin.Wilson Allow native anim instances to be set on skeletal mesh components Change 3709360 by Martin.Wilson Live Link integration into Persona - Creation of preview controllers in Persona, allow customization of preview scene - Original hard coded preview animation modes refactored into preview controllers and details customization reworks to allow selection of these - Created live link preview controller that allows driving character from live link subject - Added the ability to override the camera controller of an animation preview scene - created live link camera controller to drive camera based on data from live link Change 3709859 by Martin.Wilson CIS Fix Change 3711658 by Aaron.McLeran PR #4134: Steam Audio Beta 10 (Contributed by freemancw) Change 3711882 by Aaron.McLeran Integrating CL 3701738 from 4.18 to Dev-AnimPhys Change 3711913 by Aaron.McLeran Integrating CL 3705882 to Dev-AnimPhys Change 3711918 by Aaron.McLeran Integrating CL 3707149 and CL 3708254 from 4.18 to Dev-AnimPhys Change 3711972 by Aaron.McLeran Fixing synth components after integration issue. - Can't access audio components in constructor anymore. Change 3713090 by Thomas.Sarkanen Switch to using PhysXIncludes.h to avoid issues with Linux/HTML5 c-linkage errors Change 3713115 by Laurent.Delayen AnimDistanceMatching plugin framework. (Just a functional empty plugin to build from) Change 3713418 by Laurent.Delayen Added AnimDistanceMatching empty project to Samples/Showcases Change 3714439 by Aaron.McLeran Changes to synth component and procedural sound waves with audio mixer. - Added callbacks for initiating procedural sound wave generation and ending it, so we can get proper pre- and post- hooks for DSP processes which need it. - Added a constructor for procedural sound waves so it doesn't cause a hang during hotload Change 3714444 by Aaron.McLeran #jira UE-51471 Adding a microphone component. - Gets audio directly from a microphone, renders it in a synth component for in-game microphone audio rendering. - Movnig RtAudio lib to AudioCapture plugin, along with AudioRecordingManager (used by sequencer recorder) - Also moved audio recording manager to an editor plugin - Created new runtime plugin "audio capture" which is needed for audio capture component. Future capture-related features will go in this plugin. - Updated RtAudio version to v 5. Change 3715101 by Aaron.McLeran Integrating CL 3715055 from FN to Dev-AnimPhys #UE4 Fix to actually use the precached streaming audio DDC data when cooking. Change 3716473 by Aaron.McLeran #jira UE-51560 Fixing RtAudio compile error Change 3718096 by Jurre.deBaare GeomCache Alembic no longer renders correctly #fix serialization path was incorrect, reading incorrect FDynamicMeshVertex layout from pre-change files #jira UE-51592 Change 3718254 by Nick.Shin HTML5 CIS warning fix bringing over //UE4/Main's version to //UE4/AnimPhys .../Engine/Source/ThirdParty/PhysX{3}/PhysX_3.4/Include/PxPhysics.h #jira none Change 3718647 by Martin.Wilson Static analysis fix #jira UE-51599 Change 3719638 by Aaron.McLeran #jira UE-51598 Fixing static analysis warning. not 100% sure if this fixes it, but I ran MSVC static analysis locally and it seems to have not triggered it. Change 3720334 by Aaron.McLeran #jira UE-51620 Fix for hang during multi-PIE shutdown when using a synth component. Change 3355932 by Thomas.Sarkanen Back out changelist 3354003 Reinstating merge from Main: Merging //UE4/Dev-Main to Dev-AnimPhys (//UE4/Dev-AnimPhys) @ CL 3353839 Change 3698735 by Aaron.McLeran Adding ability for synth initialization to modify the requested sample rate - This was needed so that some synth component types can modify the sample rate easily after calling init (e.g. a microphone will want to tell the synth what sample rate it should initialize with). - It's also possible for a synth init to fail (again for mic component, this could fail if mic capture isn't supported for a platform or there is a problem with a device, etc) Change 3702404 by Thomas.Sarkanen Copying //UE4/Dev-Physics-Upgrade to Dev-AnimPhys (//UE4/Dev-AnimPhys) @ CL 3702362 Change 3703019 by Jurre.deBaare HLOD with texture binning on introduces ugly black seams #fix ensure that we ouput importance values according to baked out materials rather than per-section #jira UE-51426 [CL 3720923 by Thomas Sarkanen in Main branch]
2017-10-26 09:50:05 -04:00
bool FLiveLinkInstanceProxy::Evaluate(FPoseContext& Output)
{
PoseNode.Evaluate_AnyThread(Output);
return true;
}
void FLiveLinkInstanceProxy::UpdateAnimationNode(const FAnimationUpdateContext& InContext)
Copying //UE4/Dev-AnimPhys to //UE4/Dev-Main (Source: //UE4/Dev-AnimPhys @ 3720885) #lockdown Nick.Penwarden #rb none ============================ MAJOR FEATURES & CHANGES ============================ Change 3627179 by Aaron.McLeran Optimizing active sound by not processing active sounds if they are out of range. Allowing virtualized sounds to be exempt. Licensee says they saw a 6x improvement on active sound calculations in audio thread with this change. Change 3640144 by Aaron.McLeran #jira UE-49409 Attenuation focus audio tests on TM-AnimPhys on Cooked mac doesn't play any audio Fixing the recent optimization to not play active sounds in range. Code attempts to check if there's any possibility for a sound to have it's distance affected before trying to prune by max distance. Change 3686191 by James.Cobbett Fixing Shape_Cube to have just one simple box collision instead of 3 primitives Change 3688873 by Danny.Bouimad Fixing TM-AnimPhys test content Change 3689715 by Aaron.McLeran Removing temp logging Change 3692323 by Lina.Halper Fixed crash when attached to no collision parent, causes crash on changing collision settings. Change 3692526 by Lina.Halper Fix issue where attach to any socket causes snapping Change 3692975 by Aaron.McLeran Lib opus tps file Change 3693083 by Ethan.Geller #jira UE-51183 Fix Attenuation Settings reverb display names. [Dev-AnimPhys] Change 3695627 by Aaron.McLeran Allowing multiple plugin settings so users can have different settings for different plugins. Change 3697996 by Aaron.McLeran #jira UE-51301 Fixing compile error for BP with changes to using array settings for plugins Change 3698787 by Aaron.McLeran Checking in missing file Change 3707260 by Aaron.McLeran #jira UE-51476 Adding ability to get envelope follower delegates to audio components and synth components. - added ability to propogate up the envelope follower values from audio source manager/renderer to BP - added 2 modes to get data for audio components: per-source/soundwave and a multi/aggregate callback for cases where multiple sources play for a given active sound/audio component. - added ability to parameterize the envelope follower for an audio component, giving the attack/release time of the envelope follower - added wrapper around callback to propogate to synth components - only works (of course) in audio mixer Change 3709356 by Martin.Wilson Allow native anim instances to be set on skeletal mesh components Change 3709360 by Martin.Wilson Live Link integration into Persona - Creation of preview controllers in Persona, allow customization of preview scene - Original hard coded preview animation modes refactored into preview controllers and details customization reworks to allow selection of these - Created live link preview controller that allows driving character from live link subject - Added the ability to override the camera controller of an animation preview scene - created live link camera controller to drive camera based on data from live link Change 3709859 by Martin.Wilson CIS Fix Change 3711658 by Aaron.McLeran PR #4134: Steam Audio Beta 10 (Contributed by freemancw) Change 3711882 by Aaron.McLeran Integrating CL 3701738 from 4.18 to Dev-AnimPhys Change 3711913 by Aaron.McLeran Integrating CL 3705882 to Dev-AnimPhys Change 3711918 by Aaron.McLeran Integrating CL 3707149 and CL 3708254 from 4.18 to Dev-AnimPhys Change 3711972 by Aaron.McLeran Fixing synth components after integration issue. - Can't access audio components in constructor anymore. Change 3713090 by Thomas.Sarkanen Switch to using PhysXIncludes.h to avoid issues with Linux/HTML5 c-linkage errors Change 3713115 by Laurent.Delayen AnimDistanceMatching plugin framework. (Just a functional empty plugin to build from) Change 3713418 by Laurent.Delayen Added AnimDistanceMatching empty project to Samples/Showcases Change 3714439 by Aaron.McLeran Changes to synth component and procedural sound waves with audio mixer. - Added callbacks for initiating procedural sound wave generation and ending it, so we can get proper pre- and post- hooks for DSP processes which need it. - Added a constructor for procedural sound waves so it doesn't cause a hang during hotload Change 3714444 by Aaron.McLeran #jira UE-51471 Adding a microphone component. - Gets audio directly from a microphone, renders it in a synth component for in-game microphone audio rendering. - Movnig RtAudio lib to AudioCapture plugin, along with AudioRecordingManager (used by sequencer recorder) - Also moved audio recording manager to an editor plugin - Created new runtime plugin "audio capture" which is needed for audio capture component. Future capture-related features will go in this plugin. - Updated RtAudio version to v 5. Change 3715101 by Aaron.McLeran Integrating CL 3715055 from FN to Dev-AnimPhys #UE4 Fix to actually use the precached streaming audio DDC data when cooking. Change 3716473 by Aaron.McLeran #jira UE-51560 Fixing RtAudio compile error Change 3718096 by Jurre.deBaare GeomCache Alembic no longer renders correctly #fix serialization path was incorrect, reading incorrect FDynamicMeshVertex layout from pre-change files #jira UE-51592 Change 3718254 by Nick.Shin HTML5 CIS warning fix bringing over //UE4/Main's version to //UE4/AnimPhys .../Engine/Source/ThirdParty/PhysX{3}/PhysX_3.4/Include/PxPhysics.h #jira none Change 3718647 by Martin.Wilson Static analysis fix #jira UE-51599 Change 3719638 by Aaron.McLeran #jira UE-51598 Fixing static analysis warning. not 100% sure if this fixes it, but I ran MSVC static analysis locally and it seems to have not triggered it. Change 3720334 by Aaron.McLeran #jira UE-51620 Fix for hang during multi-PIE shutdown when using a synth component. Change 3355932 by Thomas.Sarkanen Back out changelist 3354003 Reinstating merge from Main: Merging //UE4/Dev-Main to Dev-AnimPhys (//UE4/Dev-AnimPhys) @ CL 3353839 Change 3698735 by Aaron.McLeran Adding ability for synth initialization to modify the requested sample rate - This was needed so that some synth component types can modify the sample rate easily after calling init (e.g. a microphone will want to tell the synth what sample rate it should initialize with). - It's also possible for a synth init to fail (again for mic component, this could fail if mic capture isn't supported for a platform or there is a problem with a device, etc) Change 3702404 by Thomas.Sarkanen Copying //UE4/Dev-Physics-Upgrade to Dev-AnimPhys (//UE4/Dev-AnimPhys) @ CL 3702362 Change 3703019 by Jurre.deBaare HLOD with texture binning on introduces ugly black seams #fix ensure that we ouput importance values according to baked out materials rather than per-section #jira UE-51426 [CL 3720923 by Thomas Sarkanen in Main branch]
2017-10-26 09:50:05 -04:00
{
UpdateCounter.Increment();
PoseNode.Update_AnyThread(InContext);
if(ULiveLinkInstance* Instance = Cast<ULiveLinkInstance>(GetAnimInstanceObject()))
{
Instance->CurrentRetargetAsset = PoseNode.CurrentRetargetAsset; //Cache for GC
}
Copying //UE4/Dev-AnimPhys to //UE4/Dev-Main (Source: //UE4/Dev-AnimPhys @ 3720885) #lockdown Nick.Penwarden #rb none ============================ MAJOR FEATURES & CHANGES ============================ Change 3627179 by Aaron.McLeran Optimizing active sound by not processing active sounds if they are out of range. Allowing virtualized sounds to be exempt. Licensee says they saw a 6x improvement on active sound calculations in audio thread with this change. Change 3640144 by Aaron.McLeran #jira UE-49409 Attenuation focus audio tests on TM-AnimPhys on Cooked mac doesn't play any audio Fixing the recent optimization to not play active sounds in range. Code attempts to check if there's any possibility for a sound to have it's distance affected before trying to prune by max distance. Change 3686191 by James.Cobbett Fixing Shape_Cube to have just one simple box collision instead of 3 primitives Change 3688873 by Danny.Bouimad Fixing TM-AnimPhys test content Change 3689715 by Aaron.McLeran Removing temp logging Change 3692323 by Lina.Halper Fixed crash when attached to no collision parent, causes crash on changing collision settings. Change 3692526 by Lina.Halper Fix issue where attach to any socket causes snapping Change 3692975 by Aaron.McLeran Lib opus tps file Change 3693083 by Ethan.Geller #jira UE-51183 Fix Attenuation Settings reverb display names. [Dev-AnimPhys] Change 3695627 by Aaron.McLeran Allowing multiple plugin settings so users can have different settings for different plugins. Change 3697996 by Aaron.McLeran #jira UE-51301 Fixing compile error for BP with changes to using array settings for plugins Change 3698787 by Aaron.McLeran Checking in missing file Change 3707260 by Aaron.McLeran #jira UE-51476 Adding ability to get envelope follower delegates to audio components and synth components. - added ability to propogate up the envelope follower values from audio source manager/renderer to BP - added 2 modes to get data for audio components: per-source/soundwave and a multi/aggregate callback for cases where multiple sources play for a given active sound/audio component. - added ability to parameterize the envelope follower for an audio component, giving the attack/release time of the envelope follower - added wrapper around callback to propogate to synth components - only works (of course) in audio mixer Change 3709356 by Martin.Wilson Allow native anim instances to be set on skeletal mesh components Change 3709360 by Martin.Wilson Live Link integration into Persona - Creation of preview controllers in Persona, allow customization of preview scene - Original hard coded preview animation modes refactored into preview controllers and details customization reworks to allow selection of these - Created live link preview controller that allows driving character from live link subject - Added the ability to override the camera controller of an animation preview scene - created live link camera controller to drive camera based on data from live link Change 3709859 by Martin.Wilson CIS Fix Change 3711658 by Aaron.McLeran PR #4134: Steam Audio Beta 10 (Contributed by freemancw) Change 3711882 by Aaron.McLeran Integrating CL 3701738 from 4.18 to Dev-AnimPhys Change 3711913 by Aaron.McLeran Integrating CL 3705882 to Dev-AnimPhys Change 3711918 by Aaron.McLeran Integrating CL 3707149 and CL 3708254 from 4.18 to Dev-AnimPhys Change 3711972 by Aaron.McLeran Fixing synth components after integration issue. - Can't access audio components in constructor anymore. Change 3713090 by Thomas.Sarkanen Switch to using PhysXIncludes.h to avoid issues with Linux/HTML5 c-linkage errors Change 3713115 by Laurent.Delayen AnimDistanceMatching plugin framework. (Just a functional empty plugin to build from) Change 3713418 by Laurent.Delayen Added AnimDistanceMatching empty project to Samples/Showcases Change 3714439 by Aaron.McLeran Changes to synth component and procedural sound waves with audio mixer. - Added callbacks for initiating procedural sound wave generation and ending it, so we can get proper pre- and post- hooks for DSP processes which need it. - Added a constructor for procedural sound waves so it doesn't cause a hang during hotload Change 3714444 by Aaron.McLeran #jira UE-51471 Adding a microphone component. - Gets audio directly from a microphone, renders it in a synth component for in-game microphone audio rendering. - Movnig RtAudio lib to AudioCapture plugin, along with AudioRecordingManager (used by sequencer recorder) - Also moved audio recording manager to an editor plugin - Created new runtime plugin "audio capture" which is needed for audio capture component. Future capture-related features will go in this plugin. - Updated RtAudio version to v 5. Change 3715101 by Aaron.McLeran Integrating CL 3715055 from FN to Dev-AnimPhys #UE4 Fix to actually use the precached streaming audio DDC data when cooking. Change 3716473 by Aaron.McLeran #jira UE-51560 Fixing RtAudio compile error Change 3718096 by Jurre.deBaare GeomCache Alembic no longer renders correctly #fix serialization path was incorrect, reading incorrect FDynamicMeshVertex layout from pre-change files #jira UE-51592 Change 3718254 by Nick.Shin HTML5 CIS warning fix bringing over //UE4/Main's version to //UE4/AnimPhys .../Engine/Source/ThirdParty/PhysX{3}/PhysX_3.4/Include/PxPhysics.h #jira none Change 3718647 by Martin.Wilson Static analysis fix #jira UE-51599 Change 3719638 by Aaron.McLeran #jira UE-51598 Fixing static analysis warning. not 100% sure if this fixes it, but I ran MSVC static analysis locally and it seems to have not triggered it. Change 3720334 by Aaron.McLeran #jira UE-51620 Fix for hang during multi-PIE shutdown when using a synth component. Change 3355932 by Thomas.Sarkanen Back out changelist 3354003 Reinstating merge from Main: Merging //UE4/Dev-Main to Dev-AnimPhys (//UE4/Dev-AnimPhys) @ CL 3353839 Change 3698735 by Aaron.McLeran Adding ability for synth initialization to modify the requested sample rate - This was needed so that some synth component types can modify the sample rate easily after calling init (e.g. a microphone will want to tell the synth what sample rate it should initialize with). - It's also possible for a synth init to fail (again for mic component, this could fail if mic capture isn't supported for a platform or there is a problem with a device, etc) Change 3702404 by Thomas.Sarkanen Copying //UE4/Dev-Physics-Upgrade to Dev-AnimPhys (//UE4/Dev-AnimPhys) @ CL 3702362 Change 3703019 by Jurre.deBaare HLOD with texture binning on introduces ugly black seams #fix ensure that we ouput importance values according to baked out materials rather than per-section #jira UE-51426 [CL 3720923 by Thomas Sarkanen in Main branch]
2017-10-26 09:50:05 -04:00
}
FAnimInstanceProxy* ULiveLinkInstance::CreateAnimInstanceProxy()
{
return new FLiveLinkInstanceProxy(this);
}
void ULiveLinkInstance::DestroyAnimInstanceProxy(FAnimInstanceProxy* InProxy)
{
Super::DestroyAnimInstanceProxy(InProxy);
CurrentRetargetAsset = nullptr;
}