private void OnStreamingAudioPeriodicNotification(object sender, AudioTrack.PeriodicNotificationEventArgs args) { BeatStarted?.BeginInvoke(((nextBeat - 1) + totalBeats) % totalBeats, false, null, null); AppendStreamingAudio(MixBeat(GetNotes(nextBeat))); nextBeat = (nextBeat + 1) % totalBeats; }
/// <summary> /// Called at the start of every beat /// </summary> #if __ANDROID__ private void OnStreamingAudioPeriodicNotification(object sender, AudioTrack.PeriodicNotificationEventArgs args)