private int FindFrameNumberForPhoneme(string phonemeCode)
{
int frameID = -1;
for (int i = 0; i < (_agsEditor.CurrentGame.LipSync.CharactersPerFrame.Length) && (frameID < 0); i++)
{
string[] codesForThisFrame = _agsEditor.CurrentGame.LipSync.CharactersPerFrame[i].Split('/');
foreach (string code in codesForThisFrame)
{
if (code.ToUpper() == phonemeCode)
{
frameID = i;
break;
}
}
}
return frameID;
}