logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Namespace Serenity.Tests.Shared.Audio

    Classes

    AudioListenerSandbox

    Gives a test full control over which UnityEngine.AudioListener components are active: it switches off every listener already in the scene, creates the listeners a test asks for, and puts everything back on dispose.

    AudioRoomTestFixture

    Base of the fixtures that work with rooms: every test gets a registry and a set of test objects of its own, and a test that leaves a room in the shared registry fails. Rooms are built inactive, handed the test's registry and only then activated, so the shared one stays empty.

    DepthCueDoorwaySceneFixture

    Base of the fixtures that drive a depth-cue controller through the real occlusion probe: a listener at Serenity.Tests.Shared.Audio.AudioDoorwayScene.ListenerPosition and an Serenity.Tests.Shared.Audio.AudioDoorwayScene of real colliders. Nothing about what the probe answers is scripted; a test changes the world instead. Every field starts each test at its default, because the fixture instance is shared by the tests of a class.

    DepthCueRoomSceneFixture

    Base of the fixtures that drive a depth-cue controller through a room: a rig with a listener at Serenity.Tests.Shared.Audio.AudioRoomTestWorld.ListenerPosition, a room around the source with one open doorway, and a probe that answers like a wall in front of that source. Tests change Serenity.Tests.Shared.Audio.DepthCueRoomSceneFixture.StraightLineAmount, Serenity.Tests.Shared.Audio.DepthCueRoomSceneFixture.DoorwayLegAmount and Serenity.Tests.Shared.Audio.DepthCueRoomSceneFixture.BlockedPortalPosition to change what the probe sees. Every one of them starts each test at its default, because the fixture instance is shared by the tests of a class.

    In this article
    © 2026 Serenity. All Rights Reserved