Lookup Anything

Lookup Anything

242k Downloads

[Content Patcher] Patching audio loses pitch variations

slserpent opened this issue ยท 2 comments

commented

Describe the bug
Modifying the audio files with Content Patcher makes it so that the sounds will no longer play at random different pitches.

If there is a way to define pitch settings in Content Patcher, I can find no mention of it. So, I'd just assume that it would use the original pitch settings for the sound event otherwise.

To Reproduce

  1. Make a mod to patch a sound file.
  2. Change a sound cue that uses pitch originally.
  3. Put a sound file in assets that you can clearly hear pitch changes in, like a basic sine tone.
  4. Load up the game and listen to the sound only play at its default pitch.

Here's a mod that changes chest sound to a sine tone:

{
	"Format": "2.5.0",
	"Changes": [{
		"Action": "EditData",
		"Target": "Data/AudioChanges",
		"Entries": {
			"QuietChest": {
				"Id": "openChest",
				"Category": "Sound",
				"FilePaths": [ "{{AbsoluteFilePath: assets/tone.wav}}" ],
				"StreamedVorbis": false,
				"Looped": false
			}
		}
	}]
}

Log file
Don't think you'll see too much in the log, only that the mod I was testing with (Quieter Chests) loaded. There are no other mods present.

https://smapi.io/log/835dab61ea5a4949957d4d5ad39eec8e