static Stream FindFileInPath(out string buffer, string fileName)
{
string tomake = fileName;
Stream stream = TryFileOpen(tomake, FileAccess.Read);
if (stream == null)
{
// try in the Audio folder if not found
tomake = Path.Combine("AudioCache", fileName);
stream = TryFileOpen(tomake, FileAccess.Read);
}
if (stream == null)
{
// no? maybe Speech then, templates include this
tomake = Path.Combine("Speech", fileName);
stream = TryFileOpen(tomake, FileAccess.Read);
}
buffer = tomake;
return stream;
}