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

Checks pressure-related audio filtering, bounded samples and owned communications streams.

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

Build/entry point: Tests/EarAudioTests.vcxproj; declared configurations: Debug|Win32.

EarAudioTests.cpp

Source: Tests/EarAudioTests.cpp

Check Owned Communications Audio

Fixture: Ear Audio tests
Case symbol: CheckOwnedCommunicationsAudio
Source: Tests/EarAudioTests.cpp:36

Test
Check Owned Communications Audio: decode and free reference audio; control confirms BASS continues reading the original packet after creation; all audio survives destroyed network packet.
Source check messages (including original failure wording)

  • create reference communications decoder
  • decode and free reference audio
  • create old-style borrowed-memory decoder
  • control confirms BASS continues reading the original packet after creation
  • create stream owning packet audio
  • all audio survives destroyed network packet
  • stream replacement frees its owned audio
  • empty audio is rejected
  • invalid encoded audio is rejected
  • create owned stream for device shutdown

Tone

Fixture: Ear Audio tests
Case symbol: Tone
Source: Tests/EarAudioTests.cpp:89

Test
Tone: process floating-point PCM; finite, unclipped output.
Source check messages (including original failure wording)

  • process floating-point PCM
  • finite, unclipped output

Check Interface Separation

Fixture: Ear Audio tests
Case symbol: CheckInterfaceSeparation
Source: Tests/EarAudioTests.cpp:106

Test
Check Interface Separation: game sound retains pressure muffling; interface sound stays dry on shared output; registering playback repeatedly succeeds.
Source check messages (including original failure wording)

  • create game and interface sources on the same device
  • filter only the game source
  • game sound retains pressure muffling
  • interface sound stays dry on shared output
  • registering playback repeatedly succeeds
  • replaying does not stack filters
  • new radio/comms source inherits current pressure before playback
  • new game source receives the same filter
  • update all registered game sources
  • pressure release updates both game sources together
  • pressure changes leave GUI audio unchanged
  • removing a source clears its hearing filters
  • free registered source before reloading
  • reload source while pressure is active
  • reloaded source has fresh effect handles
  • external camera clears hearing effects
  • all game sources return to dry response
  • internal camera restores pressure filtering
  • shutdown clears hearing effects
  • free routing test sources

Check Ear Pop Pairs

Fixture: Ear Audio tests
Case symbol: CheckEarPopPairs
Source: Tests/EarAudioTests.cpp:146

Test
Check Ear Pop Pairs: valid leading recording without immediate repetition; zero-time frame cannot consume delay; at most one delayed ear per frame.
Source check messages (including original failure wording)

  • one immediate leading ear
  • leading ear is hard-panned
  • valid leading recording without immediate repetition
  • leading ear has no delay
  • zero-time frame cannot consume delay
  • at most one delayed ear per frame
  • trailing ear goes fully to the opposite side
  • left and right always use different recordings
  • independent pitches remain bounded
  • random separation is positive and no more than 250 ms
  • delayed ear dispatches on the first due frame
  • both ears begin before the filter release finishes
  • exactly one trailing ear, with no duplicate playback
  • either ear can lead across randomized pairs
  • delay varies across the requested range
  • lifecycle change stops sounding ears
  • cancelled trailing ear cannot leak back inside or into a new session
  • fresh pair works after cancellation

Entry-point checks

Fixture: Ear Audio tests
Case symbol: main
Source: Tests/EarAudioTests.cpp:220

Test
Entry-point checks: initialize silent decode device; quiet recording endpoints on each channel; finite decoded recording samples.
Source check messages (including original failure wording)

  • BASS FX version
  • initialize silent decode device
  • load shipped ear pop
  • mono/stereo 44.1 kHz asset
  • short pop recording duration
  • decode complete clip
  • quiet recording endpoints on each channel
  • finite decoded recording samples
  • audible unclipped PCM
  • free decoded clip
  • create DSP test channel
  • apply ear EQ at supported output format
  • preserve low frequency body
  • attenuate high frequencies within available bandwidth
  • clear ear EQ
  • remove only owned filters
  • restore original response
  • free DSP test channel
  • release silent device
  • initialize default output
  • load native playback stream
  • update source EQ on native playback format
  • remove source EQ
  • native stereo recording accepts and retains full left/right pan
  • free unplayed panning test stream
  • release default output