Пример #1
0
        public void play(BeatmapInfo Beatmap, BeatmapDatabase Database)
        {
            using (var reader = Database.GetReader(Beatmap.BeatmapSet))
                using (var file = reader.GetStream(Beatmap.Metadata?.AudioFile ?? Beatmap.BeatmapSet.Metadata.AudioFile))
                {
                    MemoryStream ms = new MemoryStream();
                    file.CopyTo(ms);
                    System.Diagnostics.Debug.Print("Loaded file of size {0}", ms.Length);

                    Track track = new TrackBass(ms);

                    Audio.Track.SetExclusive(track);
                    track.Start();
                }
        }
Пример #2
0
 private ArchiveReader getReader() => database?.GetReader(BeatmapSetInfo);