[][src]Struct osuparse::HitObjectExtras

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.

Fields

sample_set: i32

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.

addition_set: i32

Changes the sample set for the other hit sounds (whistle, finish, clap). See above.

custom_index: i32

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.

sample_volume: i32

Is the volume of the sample, and ranges from 0 to 100.

filename: String

Names an audio file in the folder to play instead of sounds from sample sets (see above), relative to the beatmap's directory.

Trait Implementations

impl Default for HitObjectExtras
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.