Title screen music: songs cut off abruptly on scene change, and audio becomes crackly after ~8–10 songs #12

Closed
opened 2026-11-18 11:12:03 +00:00 by vekien · 1 comment

Version: 2026.11.17-09b0d15 (Windows/amd64)
Server: server.catseyexi.com (Native loader). Happens on the title/login screen before logging in.
System: NVIDIA GeForce RTX 5070 Ti Laptop GPU laptop, Windows 11, audio output via WASAPI.
Audio config: master 47, music 100, SE 100, ambient 100.

Description

Two music problems on the title screen:

1. Songs cut off abruptly. The current title track stops mid-song and the next one starts immediately, with no fade-out or crossfade. The switch seems tied to the title scene cycling to a new zone, not to the song ending. Example: music 58 (117.9s) is replaced by music 34 just before scene ex1b loads.

2. Music gets glitchy/crackly over time. After roughly 8–10 or more title songs have played, the music starts crackling and glitching, and it gets steadily worse instead of recovering when the next track starts. Early tracks sound clean. This points to something building up per track change, e.g.:

  • music streams / decoder instances not being freed or reset when a track is replaced,
  • resampler state or buffer drift building up. Tracks alternate between Atrac3 48000 Hz and ADPCM 44100 Hz, so every switch changes the sample rate,
  • the WASAPI buffer slowly underrunning as more streams pile up.

Steps to reproduce

  1. Launch Zantetsuken and leave it on the login screen.
  2. Listen as the title scenes cycle. Each zone change cuts the current song off abruptly.
  3. Leave it running for about 8–10+ songs (roughly 20+ minutes). The music becomes crackly/glitchy.

Log

Track changes from the current session. Note how the music switches right before each new scene, and the alternating codecs and sample rates:

[audio] device open (wasapi)
[audio] music: .../sound9/win/music/data/music058.bgw (Atrac3 48000Hz 2ch, 117.9s, loop@495136)
[title] music 58
[title] scene mov8: zone 141, 10260 frames, 16 camera moves
[audio] music: .../sound/win/music/data/music034.bgw (Adpcm 44100Hz 2ch, 127.6s, loop@71547)
[title] music 34
[title] scene ex1b: zone 123, 9900 frames, 14 camera moves
[audio] music: .../sound4/win/music/data/music179.bgw (Atrac3 44100Hz 2ch, 131.5s, loop@1919)
[title] music 179
[title] scene ex2c: zone 33, 9900 frames, 14 camera moves
[audio] music: .../sound9/win/music/data/music058.bgw (Atrac3 48000Hz 2ch, 117.9s, loop@495136)
[title] music 58

No errors, warnings or underruns are logged when the crackling starts. The log keeps only the current and previous sessions, and neither covers a run long enough to reach the crackling. An audio debug line (buffer fill / underrun count / active stream count) would help track this down.

**Version:** 2026.11.17-09b0d15 (Windows/amd64) **Server:** server.catseyexi.com (Native loader). Happens on the title/login screen before logging in. **System:** NVIDIA GeForce RTX 5070 Ti Laptop GPU laptop, Windows 11, audio output via WASAPI. **Audio config:** master 47, music 100, SE 100, ambient 100. ### Description Two music problems on the title screen: **1. Songs cut off abruptly.** The current title track stops mid-song and the next one starts immediately, with no fade-out or crossfade. The switch seems tied to the title scene cycling to a new zone, not to the song ending. Example: music 58 (117.9s) is replaced by music 34 just before scene `ex1b` loads. **2. Music gets glitchy/crackly over time.** After roughly 8–10 or more title songs have played, the music starts crackling and glitching, and it gets steadily worse instead of recovering when the next track starts. Early tracks sound clean. This points to something building up per track change, e.g.: - music streams / decoder instances not being freed or reset when a track is replaced, - resampler state or buffer drift building up. Tracks alternate between Atrac3 48000 Hz and ADPCM 44100 Hz, so every switch changes the sample rate, - the WASAPI buffer slowly underrunning as more streams pile up. ### Steps to reproduce 1. Launch Zantetsuken and leave it on the login screen. 2. Listen as the title scenes cycle. Each zone change cuts the current song off abruptly. 3. Leave it running for about 8–10+ songs (roughly 20+ minutes). The music becomes crackly/glitchy. ### Log Track changes from the current session. Note how the music switches right before each new scene, and the alternating codecs and sample rates: ``` [audio] device open (wasapi) [audio] music: .../sound9/win/music/data/music058.bgw (Atrac3 48000Hz 2ch, 117.9s, loop@495136) [title] music 58 [title] scene mov8: zone 141, 10260 frames, 16 camera moves [audio] music: .../sound/win/music/data/music034.bgw (Adpcm 44100Hz 2ch, 127.6s, loop@71547) [title] music 34 [title] scene ex1b: zone 123, 9900 frames, 14 camera moves [audio] music: .../sound4/win/music/data/music179.bgw (Atrac3 44100Hz 2ch, 131.5s, loop@1919) [title] music 179 [title] scene ex2c: zone 33, 9900 frames, 14 camera moves [audio] music: .../sound9/win/music/data/music058.bgw (Atrac3 48000Hz 2ch, 117.9s, loop@495136) [title] music 58 ``` No errors, warnings or underruns are logged when the crackling starts. The log keeps only the current and previous sessions, and neither covers a run long enough to reach the crackling. An audio debug line (buffer fill / underrun count / active stream count) would help track this down.
Owner
Fixed in https://git.bangplays.games/Banggugyangu/Zantetsuken-Releases/releases/tag/11_18_01
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Banggugyangu/Zantetsuken-Releases#12
No description provided.