Curl Audio - Printable Version +- Curl Global Community (https://communities.curl.com) +-- Forum: Discussions (https://communities.curl.com/forumdisplay.php?fid=1) +--- Forum: General Curl questions (https://communities.curl.com/forumdisplay.php?fid=2) +--- Thread: Curl Audio (/showthread.php?tid=340) |
Curl Audio - RobertShiplett - 11-12-2011 The docs have a sound example that allows an amusing WAV file to loop - but if set to lop and playing when the exaple window is closed - am I wrong to think that this code was needed? {on-applet-suspend do {if sproing.valid? and {sproing.playing?} then {sproing.stop} } {exit 0} } || Should this be added to the docs example ? || Should the valid? check no be in the main loop of the example ? || Why are we putting == true into boolean tests in our example code ? Is it not time to refresh some of these docs? RE: Curl Audio - c-s - 11-16-2011 (11-12-2011, 04:57 AM)RobertShiplett Wrote: The docs have a dound example that allows an amusing WAV file to loop - but if set to lop and playing when the exaple window is closed - am I wrong to think that this code was needed?It shouldn't be necessary to manually stop the playback on suspend. Have you found otherwise? As you say, though, == true is unnecessary. |