Checks pressure equalization, muffling, pop release and physiological input boundaries.
Subsystem: Audio and physiological effects
Fixture/harness: earpressuretests
Setup: The standalone EarPressureTests harness owns the inputs, local helpers and assertion sink used by the case files below.
Build/entry point: Tests/EarPressureTests.vcxproj; declared configurations: Debug|Win32.
EarPressureTests.cpp
Source: Tests/EarPressureTests.cpp
Check Pop Release
Fixture: Ear Pressure tests
Case symbol: CheckPopRelease
Source: Tests/EarPressureTests.cpp:21
- Test
- Check Pop Release: muffle built up before release test; even a long pop frame must preserve the filter for playback; release does not trigger another pop.
Source check messages (including original failure wording)
-
muffle built up before release test
-
pressure step triggers pop
-
even a long pop frame must preserve the filter for playback
-
release does not trigger another pop
-
release is monotonic and bounded
-
pop begins audibly muffled rather than clearing instantly
-
filter relaxes during release
-
filter fully removed within half a second
-
new pressure mismatch can build muffle after release
-
second pop starts another release
-
reset cancels an active release immediately
-
reset release cannot leak into a new character
Entry-point checks
Fixture: Ear Pressure tests
Case symbol: main
Source: Tests/EarPressureTests.cpp:55
- Test
- Entry-point checks: child takes precedence over sex; threshold must not redraw per frame; pop retains the filter for playback before release starts.
Source check messages (including original failure wording)
-
adult male range
-
adult female range
-
child range
-
child takes precedence over sex
-
spawn must equalize silently
-
steady pressure cannot pop
-
threshold must not redraw per frame
-
subthreshold pressure
-
gradual muffle buildup
-
compression pops
-
pop retains the filter for playback before release starts
-
baseline stable across pops
-
per-pop variance bounded
-
rapid step cooldown
-
decompression pops after cooldown
-
no queued burst after a large step
-
flat response restored after equalization
-
character change equalizes silently
-
death/menu reset
-
respawn equalizes silently
-
suspend suppresses false pop
-
resume uses new pressure
-
reject negative pressure
-
reject NaN
-
reject infinity
-
zero pressure initializes without error
-
zero elapsed time cannot pop
-
reject negative time
-
first logged pop
-
unlogged comparison pop
-
diagnostics capture pre-equalization pressure
-
first pop reports triggering threshold and no previous interval
-
quiet frame has no diagnostic event
-
quiet frame does not overwrite event snapshot
-
second logged pop
-
unlogged reverse-pressure pop
-
reverse pressure keeps signed delta and original threshold
-
interval includes quiet frames
-
diagnostics do not change random draws or hearing behavior
-
suspend re-anchor clears diagnostic interval
-
reset clears diagnostic interval
-
character change clears diagnostic interval
-
normal cabin rate gives plausible cadence
-
faster pressure changes pop more often
-
frame-rate independent cadence
-
symmetric ascent/descent cadence