audio object explained

The audio object at the moment contains a single method that can play a sampled audio URL.

audio.play(URL fromWhere)

This will play a sample URL. The following javascript lines are taken from the provided examples.

htmlBase=constants.getParentUrl();
print ('htmlBase=',htmlBase,'\n');
audio.play(new java.net.URL (htmlBase+"/../copy-shapes.wav"));