public int NoteLoop()
{
var sound = audContent.GetSFX(Patch);
if (sound != null)
{
var instance = sound.CreateInstance();
instance.Volume = Volume;
instance.Pan = Pan;
instance.Play();
var entry = new HITNoteEntry(instance, Patch);
Notes.Add(entry);
NotesByChannel.Add(instance, entry);
return Notes.Count - 1;
}
else
{
Debug.WriteLine("HITThread: Couldn't find sound: " + Patch.ToString());
}
return -1;
}