AUKit
|
An asynchronous player created by aukit.player
.
More...
Public Member Functions | |
number | livePosition () |
Returns the estimated current position of audio playback. | |
pause () | |
Pauses the player if it's playing. | |
play () | |
Plays the audio if it's paused. | |
seek (number pos) | |
Seeks the current audio playback position. If the requested position isn't loaded yet, the player will hang until the audio is loaded. (If the position is out of bounds, the player will not continue.) | |
❴ playAudio→ | fun (samples→ number❲❳‚ volume?→ number) ❵❲❳ speakers |
The speakers the audio is playing on. | |
stop () | |
Stops the audio playback. This kills all tasks and invalidates the player. | |
An asynchronous player created by aukit.player
.
number aukit::Player::livePosition | ( | ) |
Returns the estimated current position of audio playback.
aukit::Player::seek | ( | number | pos | ) |
Seeks the current audio playback position. If the requested position isn't loaded yet, the player will hang until the audio is loaded. (If the position is out of bounds, the player will not continue.)
pos | (number) The position to seek to, in seconds |