You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Saturday, November 21st 2020, 2:58pm

play sound again

Dear All,

createsound(flame1, 'flame1.mp3');
...
playsound(flame1); - OK

At later stage if I call "playsound(flame1);" once again it gives "WARNING: playsound: no sound with name 'flame1' found!", meaning it's possible to play it only once.
How to keep it for multiply usage?


regards,
Granton

2

Saturday, December 5th 2020, 11:55am

Solved, by adding .oncomplete... not right, but at least this is a temporary solution:
createsound(flame1, 'flame1.mp3');
set(sound[flame1].oncomplete, "createsound(flame1, 'flame1.mp3');");