Curl Global Community

Full Version: Curl Audio
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
(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?

{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?
It shouldn't be necessary to manually stop the playback on suspend. Have you found otherwise?

As you say, though, == true is unnecessary.