mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-05-25 05:40:21 -04:00
[GUI] Fix displayed info for non-fmod audio clips from Unity <5
This commit is contained in:
parent
6c515aee2e
commit
7e408a3667
@ -1054,12 +1054,15 @@ namespace AssetStudioGUI
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (!m_AudioClip.IsConvertSupport())
|
if (!m_AudioClip.IsConvertSupport())
|
||||||
|
{
|
||||||
|
if (m_AudioClip.version >= 5)
|
||||||
{
|
{
|
||||||
assetItem.InfoText +=
|
assetItem.InfoText +=
|
||||||
$"\nLength: {m_AudioClip.m_Length:.0##}\n" +
|
$"\nLength: {m_AudioClip.m_Length:0.0##}\n" +
|
||||||
$"Channel count: {m_AudioClip.m_Channels}\n" +
|
$"Channel count: {m_AudioClip.m_Channels}\n" +
|
||||||
$"Sample rate: {m_AudioClip.m_Frequency}\n" +
|
$"Sample rate: {m_AudioClip.m_Frequency}\n" +
|
||||||
$"Bit depth: {m_AudioClip.m_BitsPerSample}";
|
$"Bit depth: {m_AudioClip.m_BitsPerSample}";
|
||||||
|
}
|
||||||
StatusStripUpdate("Preview is not available for non-fmod sounds. Try to export instead.");
|
StatusStripUpdate("Preview is not available for non-fmod sounds. Try to export instead.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user