Skip to content

Commit

Permalink
update doc/*/audio.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailRis committed Dec 18, 2024
1 parent da9cfba commit fc8b166
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions doc/en/audio.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Library **audio** contains available Audio API in Lua scripts.

```lua
audio.play_stream(
-- audio file location
-- audio file location (without entry point, but with extension included)
name: string,
-- audio source world position
x: number, y: number, z: number,
Expand All @@ -79,7 +79,7 @@ Plays streaming audio from the specified file at the specified world position. R

```lua
audio.play_stream_2d(
-- audio file location
-- audio file location (without entry point, but with extension included)
name: string,
-- audio gain (0.0 - 1.0)
volume: number
Expand Down Expand Up @@ -202,4 +202,4 @@ audio.count_speakers() -> integer

-- get current number of playing streams
audio.count_streams() -> integer
```
```
4 changes: 2 additions & 2 deletions doc/ru/audio.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

```lua
audio.play_stream(
-- путь к аудио-файлу
-- путь к аудио-файлу (без точки входа, но с указанием расширения)
name: string,
-- позиция источника аудио в мире
x: number, y: number, z: number,
Expand All @@ -80,7 +80,7 @@ audio.play_stream(

```lua
audio.play_stream_2d(
-- путь к аудио-файлу
-- путь к аудио-файлу (без точки входа, но с указанием расширения)
name: string,
-- громкость аудио (от 0.0 до 1.0)
volume: number
Expand Down

0 comments on commit fc8b166

Please sign in to comment.