logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class AudioDepthCueCalculatorGradedOcclusionTests

    Pure-math scenarios for the graded occlusion in AudioDepthCueCalculator: how a detour around an obstacle maps to an occlusion amount, how a share of blocked paths maps to one, and how a rising amount settles at its own authored speed while a falling one keeps the fixed opening speed.

    Inheritance
    object
    AudioDepthCueCalculatorGradedOcclusionTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.AudioPlayer.Tests.Domain
    Assembly: Tests.dll
    Syntax
    public class AudioDepthCueCalculatorGradedOcclusionTests

    Constructors

    AudioDepthCueCalculatorGradedOcclusionTests()

    Declaration
    public AudioDepthCueCalculatorGradedOcclusionTests()

    Methods

    IsOccluded_OnlyAnAmountAboveZero_IsTrue(float, bool)

    Declaration
    public void IsOccluded_OnlyAnAmountAboveZero_IsTrue(float occlusionAmount, bool expected)
    Parameters
    Type Name Description
    float occlusionAmount
    bool expected

    OcclusionAmountFromBlockedShare_EverythingBlocked_IsOne()

    Declaration
    public void OcclusionAmountFromBlockedShare_EverythingBlocked_IsOne()

    OcclusionAmountFromBlockedShare_FullLengthChanged_FollowsTheNewLength()

    Declaration
    public void OcclusionAmountFromBlockedShare_FullLengthChanged_FollowsTheNewLength()

    OcclusionAmountFromBlockedShare_GrowingShare_NeverDecreases()

    Declaration
    public void OcclusionAmountFromBlockedShare_GrowingShare_NeverDecreases()

    OcclusionAmountFromBlockedShare_NothingBlocked_IsTheCurveAtTheFallbackDetour()

    Declaration
    public void OcclusionAmountFromBlockedShare_NothingBlocked_IsTheCurveAtTheFallbackDetour()

    OcclusionAmountFromBlockedShare_ShareOutsideTheRange_IsClamped()

    Declaration
    public void OcclusionAmountFromBlockedShare_ShareOutsideTheRange_IsClamped()

    OcclusionAmountFromDetour_ExtraPathAtOrBeyondTheFullLength_IsOne()

    Declaration
    public void OcclusionAmountFromDetour_ExtraPathAtOrBeyondTheFullLength_IsOne()

    OcclusionAmountFromDetour_GrowingExtraPath_NeverDecreases()

    Declaration
    public void OcclusionAmountFromDetour_GrowingExtraPath_NeverDecreases()

    OcclusionAmountFromDetour_HalfTheFullLength_IsWellAboveHalf()

    Declaration
    public void OcclusionAmountFromDetour_HalfTheFullLength_IsWellAboveHalf()

    OcclusionAmountFromDetour_NegativeOrNotANumberExtraPath_IsZero()

    Declaration
    public void OcclusionAmountFromDetour_NegativeOrNotANumberExtraPath_IsZero()

    OcclusionAmountFromDetour_NoExtraPath_IsZero()

    Declaration
    public void OcclusionAmountFromDetour_NoExtraPath_IsZero()

    OcclusionAmountFromDetour_NotGraded_IsOneForAnyHit()

    Declaration
    public void OcclusionAmountFromDetour_NotGraded_IsOneForAnyHit()

    OcclusionAmountFromDetour_ScalingBothLengths_KeepsTheAmount()

    Declaration
    public void OcclusionAmountFromDetour_ScalingBothLengths_KeepsTheAmount()

    OcclusionAmountFromDetour_SmallExtraPath_StaysLow()

    Declaration
    public void OcclusionAmountFromDetour_SmallExtraPath_StaysLow()

    OcclusionAmountFromDetour_ThirtiethOfTheFullLength_IsBelowTheCalibrationCeiling()

    Declaration
    public void OcclusionAmountFromDetour_ThirtiethOfTheFullLength_IsBelowTheCalibrationCeiling()

    OcclusionAmount_NegativeFullLength_MatchesAZeroFullLength()

    Declaration
    public void OcclusionAmount_NegativeFullLength_MatchesAZeroFullLength()

    SmoothOcclusionTowards_DefaultClosing_FollowsThePinnedStepValues()

    Declaration
    public void SmoothOcclusionTowards_DefaultClosing_FollowsThePinnedStepValues()

    SmoothOcclusionTowards_Falling_MultipliesByTheOpeningFactorWhateverTheClosingTime()

    Declaration
    public void SmoothOcclusionTowards_Falling_MultipliesByTheOpeningFactorWhateverTheClosingTime()

    SmoothOcclusionTowards_NoElapsedTime_KeepsTheCurrentAmount()

    Declaration
    public void SmoothOcclusionTowards_NoElapsedTime_KeepsTheCurrentAmount()

    SmoothOcclusionTowards_NoOrNegativeClosingTime_RisesInstantly()

    Declaration
    public void SmoothOcclusionTowards_NoOrNegativeClosingTime_RisesInstantly()

    SmoothOcclusionTowards_NotANumberClosingTime_RisesInstantly()

    Declaration
    public void SmoothOcclusionTowards_NotANumberClosingTime_RisesInstantly()

    SmoothOcclusionTowards_SlowClosing_RisesSlowerThanItFalls()

    Declaration
    public void SmoothOcclusionTowards_SlowClosing_RisesSlowerThanItFalls()
    In this article
    © 2026 Serenity. All Rights Reserved