ValveSoftware / Source-1-Games

Source 1 based games such as TF2 and Counter-Strike: Source
648 stars 75 forks source link

Glitchy audio in the new VSH map #6413

Open v8y2m opened 1 month ago

v8y2m commented 1 month ago

Saxtons lines are extremely glitch and sound like he speaks morse code

https://youtu.be/hfRwn_XfMsU

KiwifruitDev commented 1 month ago

I think this could be due to audio caching, maybe try deleting the sound.cache files from your tf sound directory, the custom directory (for vpks), and each sound directory inside subfolders of custom?

Lizard-Of-Oz commented 3 weeks ago

The bug was fixed a few hours after the initial release. I'll leave my discoveries here for the time being.

The thing that caused the glitch was attaching lipsync data to ADPCM wavs. The fix was to replace those with mp3s (thus, losing the lipsync data in the process as mp3s can't store it). We know from several maps (namely, Embargo) that ADPCM wavs without lipsync work correctly, and they support looping sound cues. My current theory is that the combination of lipsync data and ADPCM caused the issue, but I'll have to investigate to rule out that it could be a flaw in how I injected the lipsync data into the files. It's impossible to attach lipsync data to mp3 files - when Valve converted voice lines to mp3 way back when, they moved lipsync data into separate files which an individual map can't add new entries to.