Accidentally removed loop last commit
The one that checked if ~index.ogg was not used still being used by SoX.
This commit is contained in:
parent
f5df1f4324
commit
9630f4351b
1 changed files with 16 additions and 5 deletions
21
Program.cs
21
Program.cs
|
@ -391,12 +391,23 @@ namespace RSCacheTool
|
||||||
incomplete = true;
|
incomplete = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
//copy the index's audio chunk to a temp file so SoX can handle the combining
|
//make sure ~index.ogg is not still being used by SoX
|
||||||
using (FileStream tempIndexFile = File.Open("~index.ogg", FileMode.Create, FileAccess.Write, FileShare.None))
|
while (true)
|
||||||
{
|
{
|
||||||
indexFileStream.Position -= 4L; //include OggS
|
try
|
||||||
indexFileStream.CopyTo(tempIndexFile);
|
{
|
||||||
break;
|
//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))
|
||||||
|
{
|
||||||
|
indexFileStream.Position -= 4L; //include OggS
|
||||||
|
indexFileStream.CopyTo(tempIndexFile);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (IOException)
|
||||||
|
{
|
||||||
|
Thread.Sleep(100);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue