|
|
@ -391,6 +391,11 @@ namespace RSCacheTool
|
|
|
|
incomplete = true;
|
|
|
|
incomplete = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//make sure ~index.ogg is not still being used by SoX
|
|
|
|
|
|
|
|
while (true)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
try
|
|
|
|
|
|
|
|
{
|
|
|
|
//copy the index's audio chunk to a temp file so SoX can handle the combining
|
|
|
|
//copy the index's audio chunk to a temp file so SoX can handle the combining
|
|
|
|
using (FileStream tempIndexFile = File.Open("~index.ogg", FileMode.Create, FileAccess.Write, FileShare.None))
|
|
|
|
using (FileStream tempIndexFile = File.Open("~index.ogg", FileMode.Create, FileAccess.Write, FileShare.None))
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -399,6 +404,12 @@ namespace RSCacheTool
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
catch (IOException)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Thread.Sleep(100);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!incomplete || incomplete && mergeIncomplete)
|
|
|
|
if (!incomplete || incomplete && mergeIncomplete)
|
|
|
|
{
|
|
|
|
{
|
|
|
|