Abysmal Sound on Windows?

J. Landman Gay jacque at hyperactivesw.com
Fri Jun 4 22:24:53 EDT 2010


Scott Rossi wrote:
> Anyone have any secrets for playing audioClips asynchronously with event
> messages (not other sounds) on Windows?

In my Blocks game I use an audioclip and it takes a good couple of 
seconds to load a short click sound the first time. There's a very 
decided delay. After the first playback it works normally from then on. 
As soon as I leave the card, the sound gets dumped and when I return to 
the card it has to load all over again. If that's what's affecting you, 
then I imagine the loading is blocking any other activity while it's 
happening. Audio clips are very old technology and I don't think they've 
been updated since RR took over the engine; players are supposedly the 
way to go now.

As a test, you might try playing the clip on opencard or manually from 
the message box, just to see if preloading fixes it. If so, then we can 
try to figure out how to fake a preload. I thought there was a command 
for that, but I don't see it.

If you're getting the same problem each time you click the button 
(without changing cards,) not just the first time, then that may not be 
what's wrong. My delay happens on OS X too.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list