mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-07-18 03:24:15 -04:00
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:
@ -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");
|
||||
|
Reference in New Issue
Block a user