update doc/*/audio.md
This commit is contained in:
parent
33c76e7d70
commit
babb6a6d8d
@ -60,7 +60,7 @@ Library **audio** contains available Audio API in Lua scripts.
|
|||||||
|
|
||||||
```lua
|
```lua
|
||||||
audio.play_stream(
|
audio.play_stream(
|
||||||
-- audio file location
|
-- audio file location (without entry point, but with extension included)
|
||||||
name: string,
|
name: string,
|
||||||
-- audio source world position
|
-- audio source world position
|
||||||
x: number, y: number, z: number,
|
x: number, y: number, z: number,
|
||||||
@ -79,7 +79,7 @@ Plays streaming audio from the specified file at the specified world position. R
|
|||||||
|
|
||||||
```lua
|
```lua
|
||||||
audio.play_stream_2d(
|
audio.play_stream_2d(
|
||||||
-- audio file location
|
-- audio file location (without entry point, but with extension included)
|
||||||
name: string,
|
name: string,
|
||||||
-- audio gain (0.0 - 1.0)
|
-- audio gain (0.0 - 1.0)
|
||||||
volume: number
|
volume: number
|
||||||
|
|||||||
@ -61,7 +61,7 @@
|
|||||||
|
|
||||||
```lua
|
```lua
|
||||||
audio.play_stream(
|
audio.play_stream(
|
||||||
-- путь к аудио-файлу
|
-- путь к аудио-файлу (без точки входа, но с указанием расширения)
|
||||||
name: string,
|
name: string,
|
||||||
-- позиция источника аудио в мире
|
-- позиция источника аудио в мире
|
||||||
x: number, y: number, z: number,
|
x: number, y: number, z: number,
|
||||||
@ -80,7 +80,7 @@ audio.play_stream(
|
|||||||
|
|
||||||
```lua
|
```lua
|
||||||
audio.play_stream_2d(
|
audio.play_stream_2d(
|
||||||
-- путь к аудио-файлу
|
-- путь к аудио-файлу (без точки входа, но с указанием расширения)
|
||||||
name: string,
|
name: string,
|
||||||
-- громкость аудио (от 0.0 до 1.0)
|
-- громкость аудио (от 0.0 до 1.0)
|
||||||
volume: number
|
volume: number
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user