bool IsSoundInQueue(int sound)
{
if (soundQueue.Any(snd => snd == sound))
return true;
var i = 0;
var soundQueue2 = soundQueueIMuse.ToArray();
while (i < soundQueue2.Length)
{
var num = soundQueue2[i++];
if (num > 0)
{
if (soundQueue2[i + 0] == 0x10F && soundQueue2[i + 1] == 8 && soundQueue2[i + 2] == sound)
return true;
i += num;
}
}
return false;
}