audio stats functions

This commit is contained in:
MihailRis
2024-03-19 13:42:38 +03:00
parent f2c26aed19
commit d5c39a05fb
3 changed files with 33 additions and 0 deletions
+10
View File
@@ -193,3 +193,13 @@ audio.set_velocity(speakerid: integer, x: number, y: number, z: number)
-- also returns 0, if duration is unknown (example: radio)
audio.get_duration(speakerid: integer) -> number
```
### Other functions
```lua
-- get current number of alive speakers
audio.count_speakers() -> integer
-- get current number of playing streams
audio.count_streams() -> integer
```