upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTyrannys <80750971+Tyrannys@users.noreply.github.com>2026-11-27 18:25:16 -0600
committerTyrannys <80750971+Tyrannys@users.noreply.github.com>2026-11-27 18:25:16 -0600
commit53ea681a07fa9e3678b9d43e1fd3eb8dea0deece (patch)
treeb16e49f40b305ad0e4f437815a262df0788f0270 /scripts
parentd44285197237cfe331684aa150fb9dec4b1d08b5 (diff)
silent_audio: NaN volumes refused, master volume under the lock, Reset revokes objects (RT-SILENT-AUDIO-VOLUME-AND-SPATIAL)
From kevincommits' finding on #1608 (item 4): - SimpleVolume::SetMasterVolume, StreamVolume::SetChannelVolume and StreamVolume::SetAllVolumes refuse NaN. They tested `level < 0.0f || level > 1.0f`, which is false for NaN, and stored it. One helper checks `level >= 0.0f && level <= 1.0f`, as SpatialObject::SetVolume does. - ISimpleAudioVolume's master volume and mute are kept under the client's lock, like the channel volumes, instead of read and written bare. - SpatialStream::Reset revokes every active object, as Microsoft's reference for ISpatialAudioObjectRenderStreamBase::Reset says: each is inactive, its type can be activated again, and queued ends are dropped. The stream keeps a list of its live objects (not owned); an object leaves it first thing in its destructor. Not changed: ActivateSpatialAudioObject during an update pass. The reference lists no SPTLAUDCLNT_E_OUT_OF_ORDER for it, and activating objects inside a pass is the documented pattern (this file's own test does it). 6 new checks in silent_audio_test fail on main and pass with the fix. AI-assisted (Claude Code). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions