|
Post by sayonararobocop on Mar 6, 2024 13:02:34 GMT -6
Hello all,
I've been having issues getting some of my custom sound cues to work correctly using Audio.playoverride and from what I can tell, it's because the function will only work with lowercase strings. Is this intended behavior? The PlayAudio and PlaySound functions don't have this restriction.
I just replicated this by changing the value in my test cue from "2A_SK" to to "2a_sk" in both the audio_replacements.json and my overloaded PlayAudio function. I suppose the casing doesn't matter, since it's working and I only have a few cues for the Override function anyway, but is this a best practice I should adopt anyway?
Working with this configuration:
soundKey = "2a_sk"
"2a_sk": {
"Name": "#2A (Extra Life) - Sonic & Knuckles",
"File": "2A_SK.ogg",
"Type": "Jingle",
"LoopStart": "0",
"SoundTestVisibility": "visible"
},
but won't work with this configuration:
soundKey = "2A_SK"
"2A_SK": {
"Name": "#2A (Extra Life) - Sonic & Knuckles",
"File": "2A_SK.ogg",
"Type": "Jingle",
"LoopStart": "0",
"SoundTestVisibility": "visible"
},
|
|