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, February 28th 2009, 12:31am

New sound for each scene

Following on from my "adding a mute button" thread (here: How can I add a mute button ? ), I now want to create an audio tour.

I have four linked panoramas. Each panorama has its own audio file. I want each audio file to start playing automatically when the viewer enters that scene.

Is this easily done ? Is there any standard code ?

thanks

2

Saturday, February 28th 2009, 1:05am

Hi,

easiest way should be to add a playsound() direct after the loadpano() call,
e.g.

Source code

1
2
3
4
...
loadpano(....);
stopallsounds();
playsound(bgmusik, sound1.mp3);

3

Saturday, February 28th 2009, 3:32pm

Simple = beautiful. Thanks

Similar threads