private Beatmap GetBeatmapObj(LocalOsuFile osuFile, FileInfo fileInfo) { var beatmap = BeatmapConvertExtension.ParseFromOSharp(osuFile); beatmap.BeatmapFileName = fileInfo.Name; beatmap.LastModifiedTime = fileInfo.LastWriteTime; beatmap.FolderNameOrPath = fileInfo.Directory?.Name; beatmap.InOwnDb = true; return(beatmap); }
public HitsoundChannel(LocalOsuFile osuFile, AudioPlaybackEngine engine, FileCache cache = null) : this(osuFile, Path.GetDirectoryName(osuFile.OriginPath), engine, cache) { }
public SampleChannel(LocalOsuFile osuFile, AudioPlaybackEngine engine, ICollection <Subchannel> referencedChannels, FileCache cache = null) : this(osuFile, Path.GetDirectoryName(osuFile.OriginPath), engine, referencedChannels, cache) { }