Update FMOD to v2.03.06

- Fixed a bug that caused audioСlip preview volume to reset when selecting an asset
- Added some native libs for linux-arm64, win-arm64
This commit is contained in:
VaDiM
2025-03-21 00:40:42 +03:00
parent bc0e32efec
commit 47d67e0a49
23 changed files with 2066 additions and 1479 deletions

View File

@ -96,7 +96,7 @@ namespace AssetStudioCLI
public static bool ExportAudioClip(AssetItem item, string exportPath, out string debugLog)
{
debugLog = "";
debugLog = string.Empty;
string exportFullPath;
var m_AudioClip = (AudioClip)item.Asset;
var m_AudioData = BigArrayPool<byte>.Shared.Rent(m_AudioClip.m_AudioData.Size);
@ -120,11 +120,9 @@ namespace AssetStudioCLI
debugLog += GenerateAudioClipInfo(m_AudioClip);
}
var debugLogConverter = "";
var buffer = converter.IsLegacy
? converter.RawAudioClipToWav(out debugLogConverter)
: converter.ConvertToWav(m_AudioData, out debugLogConverter);
debugLog += debugLogConverter;
? converter.RawAudioClipToWav(ref debugLog)
: converter.ConvertToWav(m_AudioData, ref debugLog);
if (buffer == null)
{
Logger.Error($"{debugLog}Export error. \"{item.Text}\": Failed to convert fmod audio to Wav");