Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a gameplay hit sample.

Hierarchy

  • HitSampleInfo

Index

Constructors

  • Parameters

    • name: string
    • Optional bank: <internal>.SampleBank
    • Optional customSampleBank: number
    • Optional volume: number
    • Optional isLayered: boolean

    Returns <internal>.HitSampleInfo

Properties

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
HIT_FINISH: string
HIT_NORMAL: string
HIT_WHISTLE: string

Accessors

  • get isCustom(): boolean
  • Whether this hit sample is a custom sample.

    Returns boolean

Generated using TypeDoc