接口 WorldSoundOptions实验性

Contains additional options for a playSound occurrence.

interface WorldSoundOptions {
    pitch?: number;
    volume?: number;
}

属性

pitch?: number

Pitch of the sound played.

volume?: number

Relative volume and space by which this sound is heard.