lao documentation

lao version 1.1.0 - 20170904


device:play

Play a block of audio data to a device.

The output is synchronous: play() does not return until all the data has been output.
This is because several of the output devices supported by libao do not offer asynchronous output.
It means ao is not very suitable for real-time work such as synthesisers, electronic keyboards etc.
 

boolean success = device:play(string buffer, number bufferSize)

Parameters

Return Values

Notes

device is a userdata returned by either ao.openLive or ao.openFile.


developed by Linus Sjögren, daurnimator and peterbillam

thelinx@unreliablepollution.net


back to index

this project at GitHub