Пример #1
0
        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;
        }
Пример #2
0
        /// <summary>
        /// Called at the start of every beat
        /// </summary>
#if __ANDROID__
        private void OnStreamingAudioPeriodicNotification(object sender, AudioTrack.PeriodicNotificationEventArgs args)