Exemple #1
0
        public void Setup()
        {
#pragma warning disable 4014
            track.SeekAsync(1000);
#pragma warning restore 4014
            track.Update();
            Assert.AreEqual(1000, track.CurrentTime);
        }
        public void TestStart()
        {
            track.StartAsync();
            track.Update();

            Thread.Sleep(50);

            track.Update();

            Assert.IsTrue(track.IsRunning);
            Assert.Greater(track.CurrentTime, 0);
        }
 public void Setup()
 {
     track = new TrackBass(resources.GetStream("Resources.Tracks.sample-track.mp3"));
     track.Update();
 }
Exemple #4
0
 private void updateTrack() => runOnAudioThread(() => track.Update());