pub struct HitObjectExtras {
pub sample_set: i32,
pub addition_set: i32,
pub custom_index: i32,
pub sample_volume: i32,
pub filename: String,
}
The extras field is optional and define additional parameters related to
the hit sound samples.
Changes the sample set of the normal hit sound.
The values for these are:
- 0: Auto. See below.
- 1: Normal.
- 2: Soft.
- 3: Drum.
When sample_set
is 0
, its value is inherited from the timing point.
Changes the sample set for the other hit sounds
(whistle, finish, clap). See above.
Is the custom sample set index, e.g. 3
in
soft-hitnormal3.wav
. The special index 1
doesn't appear in the
filename, for example normal-hitfinish.wav
.
The special index 0
means it is inherited from the timing point.
Is the volume of the sample, and ranges from
0
to 100
.
Names an audio file in the folder to play instead of
sounds from sample sets (see above), relative to the beatmap's
directory.
Returns the "default value" for a type. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)