Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a gameplay hit sample.

Hierarchy

  • HitSampleInfo

Index

Constructors

  • new HitSampleInfo(name: string, bank?: SampleBank, customSampleBank?: number, volume?: number, isLayered?: boolean): HitSampleInfo

Properties

bank?: SampleBank

The bank to load the sample from.

customSampleBank: number

The index of the sample bank, if this sample bank uses custom samples.

If this is 0, the control point's sample index should be used instead.

isLayered: boolean

Whether this hit sample is layered.

Layered hit sample are automatically added in all modes (except osu!mania), but can be disabled using the layered skin config option.

name: string

The name of the sample.

volume: number

The sample volume.

If this is 0, the control point's volume should be used instead.

HIT_CLAP: string = "hitclap"
HIT_FINISH: string = "hitfinish"
HIT_NORMAL: string = "hitnormal"
HIT_WHISTLE: string = "hitwhistle"

Accessors

  • get isCustom(): boolean

Generated using TypeDoc