lao documentation
lao version 1.0.0 - 20100905
device:play
Play a block of audio data to a device.
boolean success = device:play(string buffer, number bufferSize)
Parameters
- buffer
- String containing audio data.
- bufferSize
- Number of bytes of audio data in the buffer string.
Return Values
- success
-
If the playback fails for some reason, the function will return
false. The device should be closed.
Notes
device is a userdata returned by either
ao.openLive or
ao.openFile.
developed by Linus Sjögren
thelinx@unreliablepollution.net
back to index
this project at GitHub