Rise
The Vieneo Province
Loading...
Searching...
No Matches
Wiper Audio tests

Checks wiper/rain-air audio assets and decoding through a silent BASS device.

Subsystem: Audio and physiological effects
Fixture/harness: wiperaudiotests
Setup: The standalone WiperAudioTests harness owns the inputs, local helpers and assertion sink used by the case files below.

Build/entry point: Tests/WiperAudioTests.vcxproj; declared configurations: Debug|Win32, Release|x64.

WiperAudioTests.cpp

Source: Tests/WiperAudioTests.cpp

Entry-point checks

Fixture: Wiper Audio tests
Case symbol: main
Source: Tests/WiperAudioTests.cpp:19

Test
Entry-point checks: both stems are exactly four seconds; stem has no clipping or invalid samples; loop wraps without added silence or sample changes.
Source check messages (including original failure wording)

  • silent BASS device
  • load approved rain-air stem
  • both stems are stereo 48 kHz
  • both stems are exactly four seconds
  • stem has no clipping or invalid samples
  • stem contains audible data
  • rewind stem
  • decode full stem
  • enable stem looping
  • rewind loop
  • decode complete repeated loop
  • loop wraps without added silence or sample changes
  • load both camera variants on the silent playback device
  • release rain-air streams
  • load supplied clip for both camera streams
  • read recording format
  • original stereo recording is intact
  • recording follows the production 1.2 Hz blade cycle
  • one complete clip per animation cycle at each speed
  • apply speed-dependent pitch
  • BASS retains requested playback frequency
  • start or power-resume at blade position
  • resumption seeks within one sample
  • small normal clock difference
  • normal playback does not repeatedly seek
  • correct a stalled frame
  • stall correction follows current blade position
  • end of stroke
  • loop wrap does not cause an unnecessary seek
  • running animation remains audible across wraps
  • zero elapsed time is silent
  • power loss is silent
  • OFF sounds through return stroke then stops at park
  • parked wipers stay silent
  • exact cycle boundary is still moving while ON
  • same boundary parks silently after OFF
  • missing clip cannot seek
  • invalid phase rejected
  • load horn attack, sustain, and release
  • horn sections preserve stereo PCM format
  • horn section contains playable audio
  • release horn section
  • clean audio shutdown

WiperFrameFixture.h

Source: Tests/WiperFrameFixture.h

Trace

Fixture: Wiper Audio tests
Case symbol: Trace
Source: Tests/WiperFrameFixture.h:42

Test
Checks blade/audio synchronization in the frame fixture.
Source check messages (including original failure wording)

  • blade audio synchronization succeeds

Play Ex

Fixture: Wiper Audio tests
Case symbol: PlayEx
Source: Tests/WiperFrameFixture.h:57

Test
Checks production layer gain and playback-rate application.
Source check messages (including original failure wording)

  • apply production layer gain
  • apply playback rate
  • normal immediate playback for each layer or blade stream

Run

Fixture: Wiper Audio tests
Case symbol: Run
Source: Tests/WiperFrameFixture.h:81

Test
Checks wiper/rain-air state with duct/rush streams at different playback positions.
Source check messages (including original failure wording)

  • position duct recording
  • start rush at a different position
  • normal playback starts both rain-air layers
  • independent layer positions are preserved without coordinated seeks
  • both layers share authored pitch and fade
  • duct is attached to the hull and rush uses exterior propagation
  • steady playback does not seek or restart either independent layer
  • both fades reach full volume
  • switch off fades both layers together
  • fade out stops both layers and camera variants
  • failed equipment stays silent
  • absent equipment stays silent
  • no control power stays silent
  • no engine supply stays silent
  • restored supply resumes both loops
  • simulator entry clears both loops and fade even with stale active bus state
  • received selection stays silent inside simulator
  • simulator exit cannot replay deselected protection
  • cockpit duct remains audible at every altitude
  • rush follows normalized atmospheric fade in both directions
  • silent orbital rush keeps playing for re-entry
  • vacuum cockpit retains duct only
  • vacuum exterior camera is silent
  • return to cockpit restores duct playback
  • invalid atmosphere cannot create audible rush
  • rush never exceeds approved surface mix
  • 1.5-second fade at 30/144 FPS
  • half fade out
  • mid-fade reversal preserves both layer levels
  • supply loss fades both streams to stopped
  • inactive or invalid updates stop all rain-air playback immediately
  • parked blades replace active pneumatic playback without a stale rush
  • moving blades retain their stroke-synchronized playback without the rush stem