logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityAudioDepthCueControllerTests

    Tests for Serenity.AudioPlayer.Infrastructure.Services.UnityAudioDepthCueController: the per-play reset (positioned plays get an open, unoccluded low-pass; 2D plays get none) and the per-frame apply step that writes cutoff and volume. Probe answers and "is sounding" are stubbed, so no test depends on real physics or on audio playing.

    Inheritance
    object
    UnityAudioDepthCueControllerTests
    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 UnityAudioDepthCueControllerTests

    Constructors

    UnityAudioDepthCueControllerTests()

    Declaration
    public UnityAudioDepthCueControllerTests()

    Methods

    Advance_RunsTheApplyStep()

    Declaration
    public void Advance_RunsTheApplyStep()

    ApplyStep_FartherSource_HasLowerCutoff()

    Declaration
    public void ApplyStep_FartherSource_HasLowerCutoff()

    ApplyStep_OcclusionSnappedAtReset_VolumeIsBaseTimesGain()

    Declaration
    public void ApplyStep_OcclusionSnappedAtReset_VolumeIsBaseTimesGain()

    ApplyStep_RedundantValues_SkipNativeWrites()

    Declaration
    public void ApplyStep_RedundantValues_SkipNativeWrites()

    ApplyStep_SilentVoice_IsSkipped()

    Declaration
    public void ApplyStep_SilentVoice_IsSkipped()

    ApplyStep_TwoDVoice_LeavesLowPassDisabled()

    Declaration
    public void ApplyStep_TwoDVoice_LeavesLowPassDisabled()

    ResetForPlay_AfterOccludedPlay_ResetsOpenAndUnoccludedWithNewBaseVolume()

    Declaration
    public void ResetForPlay_AfterOccludedPlay_ResetsOpenAndUnoccludedWithNewBaseVolume()

    ResetForPlay_AuthoredMinDistanceClip_CutoffOpenAtAuthoredMin()

    Declaration
    public void ResetForPlay_AuthoredMinDistanceClip_CutoffOpenAtAuthoredMin()

    ResetForPlay_AuthoredSpatialClipWithoutPosition_IsCuedFromTheEmitterPosition()

    Declaration
    public void ResetForPlay_AuthoredSpatialClipWithoutPosition_IsCuedFromTheEmitterPosition()

    ResetForPlay_IndexOutsidePool_GrowsCapacity()

    Declaration
    public void ResetForPlay_IndexOutsidePool_GrowsCapacity()

    ResetForPlay_LowPassFlagOff_DoesNotWriteVolumeNorProbe()

    Declaration
    public void ResetForPlay_LowPassFlagOff_DoesNotWriteVolumeNorProbe()

    ResetForPlay_NoListener_KeepsResetStateWithoutThrowing()

    Declaration
    public void ResetForPlay_NoListener_KeepsResetStateWithoutThrowing()

    ResetForPlay_OcclusionNeeded_ProbesExactlyOnce()

    Declaration
    public void ResetForPlay_OcclusionNeeded_ProbesExactlyOnce()

    ResetForPlay_PlayPositionWithFlatBlend_IsStillPositioned()

    Declaration
    public void ResetForPlay_PlayPositionWithFlatBlend_IsStillPositioned()

    ResetForPlay_PositionedThenTwoD_Disabled()

    Declaration
    public void ResetForPlay_PositionedThenTwoD_Disabled()

    ResetForPlay_PositionedWithinMin_EnablesLowPassWithOpenCutoff()

    Declaration
    public void ResetForPlay_PositionedWithinMin_EnablesLowPassWithOpenCutoff()

    ResetForPlay_TwoD_DisablesLowPass()

    Declaration
    public void ResetForPlay_TwoD_DisablesLowPass()

    SetUp()

    Declaration
    public void SetUp()

    TearDown()

    Declaration
    public void TearDown()

    TryGetVoiceSnapshot_PositionedVoice_ReportsCutoffAndOcclusion()

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