update FMOD Studio API to version 0.1.7.16 and fixed bug

This commit is contained in:
Perfare
2016-08-15 16:18:43 +08:00
parent 56825b5e48
commit 4a364c4ffc
6 changed files with 258 additions and 180 deletions

View File

@ -754,7 +754,7 @@ namespace Unity_Studio
}
if (!exportable && displayAll.Checked)
{
if(asset.Text == "")
if (asset.Text == "")
{
asset.Text = asset.TypeString + " #" + asset.uniqueID;
}
@ -1253,14 +1253,15 @@ namespace Unity_Studio
result = system.createSound(m_AudioClip.m_AudioData, (FMOD.MODE.OPENMEMORY | loopMode), ref exinfo, out sound);
if (ERRCHECK(result)) { break; }
result = sound.getSubSound(0, out sound);
if (ERRCHECK(result)) { break; }
FMOD.Sound subsound;
result = sound.getSubSound(0, out subsound);
if (result == FMOD.RESULT.OK)
{
sound = subsound;
}
result = sound.getLength(out FMODlenms, FMOD.TIMEUNIT.MS);
if ((result != FMOD.RESULT.OK) && (result != FMOD.RESULT.ERR_INVALID_HANDLE))
{
if (ERRCHECK(result)) { break; }
}
if (ERRCHECK(result)) { break; }
result = system.playSound(sound, null, true, out channel);
if (ERRCHECK(result)) { break; }