Class UnityAudioDepthCueRouteTests
Tests for Serenity.AudioPlayer.Infrastructure.Services.UnityAudioDepthCueRoute, the way one voice is heard through a portal: the extra metres on top of the straight
line, smoothed with the occlusion opening constant in both directions so the heard distance never steps, exactly zero when the voice is
not routed so the heard distance is then the straight one bit for bit, and kept across a portal switch. The route reads only the
portal position it was given, never the portal object, so a portal destroyed in between cannot break it.
Inheritance
UnityAudioDepthCueRouteTests
Assembly: Tests.dll
Syntax
public class UnityAudioDepthCueRouteTests
Constructors
UnityAudioDepthCueRouteTests()
Declaration
public UnityAudioDepthCueRouteTests()
Methods
Declaration
public void HeardExtra_BelowOneMillimetreWithSomethingToAdd_IsNotSnapped()
Declaration
public void HeardExtra_FadingOut_AboveOneMillimetre_KeepsFading()
Declaration
public void HeardExtra_FadingOut_SnapsToExactlyZeroBelowOneMillimetre()
Declaration
public void HeardExtra_StillRoutedWithNothingToAdd_FadesThenSnapsToExactlyZero()
IsHeardStraight_OnlyWithoutARouteAndWithoutExtraMetres()
Declaration
public void IsHeardStraight_OnlyWithoutARouteAndWithoutExtraMetres()
NoLongerRouted_KeepsTheExtraSoItFadesOutInsteadOfSteppingAndDropsThePortal()
Declaration
public void NoLongerRouted_KeepsTheExtraSoItFadesOutInsteadOfSteppingAndDropsThePortal()
Declaration
public void NonFiniteTarget_FadesTheExtraOutInsteadOfPoisoningTheDistance(Vector3 portalPosition)
Parameters
| Type |
Name |
Description |
| Vector3 |
portalPosition |
|
None_IsNotRoutedAndHasNoExtra()
Declaration
public void None_IsNotRoutedAndHasNoExtra()
NotRouted_HeardDistanceIsExactlyTheStraightDistance()
Declaration
public void NotRouted_HeardDistanceIsExactlyTheStraightDistance()
PortalSwitch_NeverStepsTheHeardDistance_ItGlidesToTheNewPath()
Declaration
public void PortalSwitch_NeverStepsTheHeardDistance_ItGlidesToTheNewPath()
PortalThatWasDestroyed_DoesNotBreakTheRouteBecauseOnlyTheSnapshotIsRead()
Declaration
public void PortalThatWasDestroyed_DoesNotBreakTheRouteBecauseOnlyTheSnapshotIsRead()
RoutedThroughADestroyedPortalObject_IsNoLongerRoutedAndItsExtraFades()
Declaration
public void RoutedThroughADestroyedPortalObject_IsNoLongerRoutedAndItsExtraFades()
Declaration
public void RoutedThrough_AnotherPortal_KeepsTheCurrentExtra()
Declaration
public void SettledAt_APortalThatIsNowhere_HasNoExtra(Vector3 portalPosition)
Parameters
| Type |
Name |
Description |
| Vector3 |
portalPosition |
|
Declaration
public void SettledAt_WithoutARoute_HasNoExtra()
SettledRoute_HeardDistanceIsThePathLengthThroughThePortal(Vector3)
Declaration
public void SettledRoute_HeardDistanceIsThePathLengthThroughThePortal(Vector3 portalPosition)
Parameters
| Type |
Name |
Description |
| Vector3 |
portalPosition |
|
SmoothedTowardsTarget_ARouteThatJustStarted_StartsFromZero()
Declaration
public void SmoothedTowardsTarget_ARouteThatJustStarted_StartsFromZero()
SmoothedTowardsTarget_TimeThatDoesNotAdvance_ChangesNothing(float)
Declaration
public void SmoothedTowardsTarget_TimeThatDoesNotAdvance_ChangesNothing(float elapsedSeconds)
Parameters
| Type |
Name |
Description |
| float |
elapsedSeconds |
|
SmoothedTowardsTarget_UsesTheOpeningTimeConstantBothWays()
Declaration
public void SmoothedTowardsTarget_UsesTheOpeningTimeConstantBothWays()