mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-04-30 00:44:26 +02:00
create the mp3 -> wav cache if it doesn't exist
This commit is contained in:
parent
cb3b21389e
commit
214ebba172
@ -155,6 +155,8 @@ namespace HeavenStudio
|
|||||||
{
|
{
|
||||||
Directory.Delete(Path.Combine(Application.temporaryCachePath, "/savewav"), true);
|
Directory.Delete(Path.Combine(Application.temporaryCachePath, "/savewav"), true);
|
||||||
}
|
}
|
||||||
|
if (!Directory.Exists(Application.temporaryCachePath, "/savewav"))
|
||||||
|
Directory.CreateDirectory(Application.temporaryCachePath, "/savewav");
|
||||||
if (audioType == AudioType.MPEG)
|
if (audioType == AudioType.MPEG)
|
||||||
{
|
{
|
||||||
Debug.Log($"mp3 loaded, Converting {filePath} to wav...");
|
Debug.Log($"mp3 loaded, Converting {filePath} to wav...");
|
||||||
@ -1194,4 +1196,4 @@ namespace HeavenStudio
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user