]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commit
Fix UAESND stream volume handling
authorDimitris Panokostas <midwan@gmail.com>
Tue, 9 Jun 2026 21:30:41 +0000 (23:30 +0200)
committerDimitris Panokostas <midwan@gmail.com>
Tue, 9 Jun 2026 21:30:41 +0000 (23:30 +0200)
commit8986ee69833bd44217cfd437936a9c1d8d36b234
treec08b85e5dd0a9a111e390b9ca909235fc50d4209
parent2ea75e12e09cce022600edc51e0846d273548299
Fix UAESND stream volume handling

- Apply writes to the current sample set volume register immediately.
  The stream volume was only loaded when a sample set was (re)loaded,
  so volume changes during playback (e.g. AHI volume fades on a
  looping sound) were silently ignored, even though current-set
  register writes are documented to take effect on the next sample
  period.
- Scale samples by the set volume and board channel volume
  multiplicatively. The previous averaging formula had a 0.5 gain
  floor, so volume 0 still played at half loudness.
- Initialize the board channel volumes for all stream channels, not
  just the first two.
sndboard.cpp