voicechat.LoadVoiceStream
VoiceStream, number voicechat.LoadVoiceStream( string fileName, string gamePath = DATA, function callback = nil )
Description
Tries to load a VoiceStream from the given file.
Meaning of the statusCode:
| Number | Meaning |
|---|---|
| -2 | File not found |
| -1 | Invalid type |
| 0 | None |
| 1 | Done |
If async was used, it won't return anything.
This function also supports .wav files to load from since 0.8
Recently Changed
This was recently changed in version (0.8).
The async argument was removed and the behavior was changed
If a callback is specified it WONT return anything and the callback will be called, as it will execute everythign async.
Arguments
3function callback = nil
the callback function to use
Function argument(s):
Function return argument(s):