wavplay

Logo

Tool to play wav file

View My GitHub Profile

version platform license downloads

Tool to play wav file

Pass in file one of the following:

The 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