Tool to play wav file
Pass in file one of the following:
Blob4D.BlobFileThe optional callback is invoked when the playback ends. You can pass in data a context object to identify the callee.
#DECLARE($params : Object)
If (Count parameters=0)
//execute in a worker to process callbacks
CALL WORKER(1; Current method name; {})
Else
$file:=File("/DATA/sample.wav")
var $wavplay : cs.wavplay
$wavplay:=cs.wavplay.new()
$wavplay.play({file: $file}; Formula(onResponse))
$wavplay.play({file: $file.getContent()}; Formula(onResponse))
End if