logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    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
    object
    UnityAudioDepthCueRouteTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.UnityAudioPlayer.Tests.Infrastructure
    Assembly: Tests.dll
    Syntax
    public class UnityAudioDepthCueRouteTests

    Constructors

    UnityAudioDepthCueRouteTests()

    Declaration
    public UnityAudioDepthCueRouteTests()

    Methods

    HeardExtra_BelowOneMillimetreWithSomethingToAdd_IsNotSnapped()

    Declaration
    public void HeardExtra_BelowOneMillimetreWithSomethingToAdd_IsNotSnapped()

    HeardExtra_FadingOut_AboveOneMillimetre_KeepsFading()

    Declaration
    public void HeardExtra_FadingOut_AboveOneMillimetre_KeepsFading()

    HeardExtra_FadingOut_SnapsToExactlyZeroBelowOneMillimetre()

    Declaration
    public void HeardExtra_FadingOut_SnapsToExactlyZeroBelowOneMillimetre()

    HeardExtra_StillRoutedWithNothingToAdd_FadesThenSnapsToExactlyZero()

    Declaration
    public void HeardExtra_StillRoutedWithNothingToAdd_FadesThenSnapsToExactlyZero()

    IsHeardStraight_OnlyWithoutARouteAndWithoutExtraMetres()

    Declaration
    public void IsHeardStraight_OnlyWithoutARouteAndWithoutExtraMetres()

    NoLongerRouted_KeepsTheExtraSoItFadesOutInsteadOfSteppingAndDropsThePortal()

    Declaration
    public void NoLongerRouted_KeepsTheExtraSoItFadesOutInsteadOfSteppingAndDropsThePortal()

    NonFiniteTarget_FadesTheExtraOutInsteadOfPoisoningTheDistance(Vector3)

    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()

    RoutedThrough_AnotherPortal_KeepsTheCurrentExtra()

    Declaration
    public void RoutedThrough_AnotherPortal_KeepsTheCurrentExtra()

    SettledAt_APortalThatIsNowhere_HasNoExtra(Vector3)

    Declaration
    public void SettledAt_APortalThatIsNowhere_HasNoExtra(Vector3 portalPosition)
    Parameters
    Type Name Description
    Vector3 portalPosition

    SettledAt_WithoutARoute_HasNoExtra()

    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()
    In this article
    © 2026 Serenity. All Rights Reserved