Пример #1
0
        } = 5 * 60;                                                         // 5 minutes

        protected override void PreparePlaylist(MusicTracks tracks)
        {
            const double fadeInDuration  = 5,
                         fadeOutDuration = 10,
                         volume          = 0.4;

            tracks.Add(
                new MusicTrack(
                    "Gameplay1",
                    isLooped: false,
                    fadeInDuration: fadeInDuration,
                    fadeOutDuration: fadeOutDuration,
                    volume: volume))
            .Add(
                new MusicTrack(
                    "Gameplay2",
                    isLooped: false,
                    fadeInDuration: fadeInDuration,
                    fadeOutDuration: fadeOutDuration,
                    volume: volume))
            .Add(
                new MusicTrack(
                    "Gameplay3",
                    isLooped: false,
                    fadeInDuration: fadeInDuration,
                    fadeOutDuration: fadeOutDuration,
                    volume: volume));
        }
Пример #2
0
        public override double PauseBetweenTracksSeconds => 4 * 60; // 4 minutes

        protected override void PreparePlaylist(MusicTracks tracks)
        {
            tracks.Add(
                new MusicTrack(
                    "PlayersBase1",
                    isLooped: false,
                    fadeInDuration: 6,
                    fadeOutDuration: 6,
                    volume: 0.4));
        }
Пример #3
0
 protected override void PreparePlaylist(MusicTracks tracks)
 {
     tracks.Add(
         new MusicTrack(
             "MainMenu1",
             isLooped: true,
             fadeInDuration: 1,
             fadeOutDuration: 2,
             volume: 1));
 }
Пример #4
0
 protected override void PreparePlaylist(MusicTracks tracks)
 {
     tracks.Add(
         new MusicTrack(
             "BaseRaid1",
             isLooped: true,
             fadeInDuration: 1.5,
             fadeOutDuration: 5,
             volume: 0.35));
 }