PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Playsound / Stopsound error - question

directdance · 25 Mar 2006, 01:51 UTC
Hi Kornalius,

there seems to be still a bug in the sound engine of PPL. Sometimes, the command Stopsound is not only stopping the sound wich I want to stop. It is stopping other sounds, too.

I can not find a workaround in my game FlyingCAB for this. So, is there a possibility to ask the PPL engine if a sound is really played at this moment or not?

Something like:

if (playsound(introsound$) == 1)

where 1 means true ...

My problem is, that sometimes my intro sound is not played, but not every time.

Other sounds are getting muted, too. I play e.g. a bird sound sometimes in a few levels and sometimes, it is not played until the end when another sound is starting. It is cut at the point when another sound is starting. When the other sound is started, it will mute the bird sound sometimes.

Please help !

Thanks,
DirectDance
I will look into this issue next week. I might also add a SoundStatus() function that would return if the sound is playing, paused or stopped.
Hi,

I have checked the internal functions code and I didn't find anything strange. However I have implemented a new function (SOUNDSTATE) that will return wheter the sound is stopped, playing or paused. This way you can check to see what is really happening.