play

Audio playback

Syntax

y = play ( x,repeat[=1],devID[=""] )
y = play ( handle,x,repeat[=1],devID[=""] )
y = handle.play ( x,repeat[=1],devID[=""] )

Inputs

ArgumentTypeDescriptionUnit
handleaudio handlehandle to audio playbackn/a
xaudioaudio signal-
repeatscalarnumber of repeats-
devIDtextstring identifier of the playback device (NOT YET IMPLEMENTED--as of AUXLAB 1.44)-

Outputs / Return Value

Notes

Examples

To play x (and don't care about asynchronous playing),
play(x)
To play x and, then, y in sequence
 h=play(x)
h.play(y) while x is played.
If h.play(y) is given after playing x is done, it doesn't play and returns -1

See Also

Review Status