diff --git a/src/main/resources/assets/oc2/doc/en_us/item/sound_card.md b/src/main/resources/assets/oc2/doc/en_us/item/sound_card.md index d8eae234..526401c8 100644 --- a/src/main/resources/assets/oc2/doc/en_us/item/sound_card.md +++ b/src/main/resources/assets/oc2/doc/en_us/item/sound_card.md @@ -12,7 +12,7 @@ This is a high level device. It must be controlled using the high level device A Device name: `sound` ### Methods -`playSound(name:string[,volume,pitch])` plays back the sound effect with the specified name. +`playSound(name:string[,volume:float,pitch:float])` plays back the sound effect with the specified name. - `name` is the name of the effect to play. - `volume` is the volume at which to play the effect in the range from `0` to `1`, with `1` being the normal volume. Optional, defaulting to `1`. - `pitch` is the pitch at which to play the effect in the range from `0.5` to `2`, with `1` being the normal pitch. Optional, defaulting to `1`. diff --git a/src/main/resources/assets/oc2/doc/ru_ru/item/sound_card.md b/src/main/resources/assets/oc2/doc/ru_ru/item/sound_card.md index 7ed7cd2e..b623c2b9 100644 --- a/src/main/resources/assets/oc2/doc/ru_ru/item/sound_card.md +++ b/src/main/resources/assets/oc2/doc/ru_ru/item/sound_card.md @@ -12,7 +12,7 @@ Название устройства: `sound` ### Методы -`playSound(name:string[,volume,pitch])` проигрывает звуковой эффект с указанным именем. +`playSound(name:string[,volume:float,pitch:float])` проигрывает звуковой эффект с указанным именем. - `name` - название эффекта для проигрывания. - `volume` - громкость проигрывания эффекта в диапазоне от `0` до `1`, где `1` - нормальная громкость. Опционально, по умолчанию `1`. - `pitch` - высота звука для проигрываемого эффекта в диапазоне от `0.5` до `2`, где `1` - нормальная высота. Опционально, по умолчанию `1`.