[Bug]: Error with export relating to audio output
Are you on the latest version of AssetRipper?
Yes, I'm on the latest release of AssetRipper.
Which release are you using?
Windows x64
Which game did this occur on?
No response
Which Unity version did this occur on?
2020.3.13f1
Is the game Mono or IL2Cpp?
Mono
Describe the issue.
Whenever exporting the game starting with version 1.0.7, and error gets thrown out (see log for the actual error). Going back to previous versions, this does not occur, and it is only a warning, and the export is allowed to proceed. Since the only change that was made to sound in 1.0.7 was unrelated to a dependency, the bug is caused by a change that can be fixed without a dependency change.
Relevant log output
Don't spam issues please, you just closed https://github.com/AssetRipper/AssetRipper/issues/1240 to open a exact same one (but you forgot to add its for the game Yandere Simulator)
I see why it changed behavior in 1.0.7. I'll make this a log message.
Reference: https://github.com/SamboyCoding/Fmod5Sharp/issues/11
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
at System.ThrowHelper.ThrowArgumentOutOfRangeException() + 0x24
at Fmod5Sharp.FsbLoader.LoadInternal(Byte[], Boolean) + 0x348
at AssetRipper.Export.UnityProjects.Audio.AudioClipDecoder.TryDecode(IAudioClip, Byte[]&, String&, String&) + 0x1fa
at AssetRipper.Export.UnityProjects.Audio.AudioClipExporter.TryCreateCollection(IUnityObjectBase, IExportCollection&) + 0x50
at AssetRipper.Export.UnityProjects.ProjectExporter.CreateCollection(IUnityObjectBase) + 0x85
at AssetRipper.Export.UnityProjects.ProjectExporter.CreateCollections(GameBundle) + 0xd9
at AssetRipper.Export.UnityProjects.ProjectExporter.Export(GameBundle, CoreConfiguration) + 0x32
at AssetRipper.Export.UnityProjects.ExportHandler.Export(GameData, String) + 0x198
at AssetRipper.GUI.Web.Pages.Commands.Export.<AssetRipper-GUI-Web-Pages-ICommand-Execute>d__0.MoveNext() + 0x118
--- End of stack trace from previous location ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x20
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0xb2
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task, ConfigureAwaitOptions) + 0x4b
at AssetRipper.GUI.Web.Pages.Commands.<HandleCommand>d__6`1.MoveNext() + 0xaf
--- End of stack trace from previous location ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x20
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0xb2
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task, ConfigureAwaitOptions) + 0x4b
at AssetRipper.GUI.Web.ErrorHandlingMiddleware.<InvokeAsync>d__0.MoveNext() + 0x9f