|
cueName = Marshal.PtrToStringAnsi(cueInfo->name)!; |
Some cues, probably when only played by ID, may not have a cue name. This can lead to junk data being read as a string and being printed to console, leading to odd issues like the Windows error sound playing.
Maybe there's a library function for getting a cue name with a success state if there was one or not. Otherwise, might be necessary to restrict valid cue names in some way.
Ryo/Ryo.Reloaded/Audio/AudioService.cs
Line 124 in 61fb4d7
Some cues, probably when only played by ID, may not have a cue name. This can lead to junk data being read as a string and being printed to console, leading to odd issues like the Windows error sound playing.
Maybe there's a library function for getting a cue name with a success state if there was one or not. Otherwise, might be necessary to restrict valid cue names in some way.