mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-15 06:05:10 +00:00
create the mp3 -> wav cache if it doesn't exist
This commit is contained in:
parent
cb3b21389e
commit
214ebba172
1 changed files with 3 additions and 1 deletions
|
@ -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...");
|
||||||
|
|
Loading…
Reference in a new issue