private static string RenderHitObjectHitSound(HitObject hitObject, Beatmap beatmap, int edgeIndex = 0) { if (beatmap.generalSettings.mode == Beatmap.Mode.Taiko) { // Taiko modifies gameplay through hit sounds, and this gameplay effect is visible in the timeline already. return(""); } HitObject.HitSound?hitSound; if (edgeIndex == 0) { hitSound = hitObject.GetStartHitSound(); } else if (hitObject is Slider slider && slider.reverseHitSounds.Count > edgeIndex - 1) { hitSound = slider.reverseHitSounds[edgeIndex - 1]; }