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.

usagi

Trainee

  • "usagi" started this thread

Posts: 98

Location: Australia

Occupation: Virtual tour creator, VR app developer

  • Send private message

1

Sunday, January 31st 2010, 8:27am

pause sound toggle not working with directional sound

Hi,
Directional sound is working nicely but having a prob getting the two sounds to toggle on and off in a pano using

pausesoundtoggle(id);

Here's the code I'm using in the pano's xml file.

Source code

1
 <plugin name="sound" url="sound_btn.png" alpha="0.7" keep="false" align="righttop" onclick="pausesoundtoggle(s1,s2);" onhover="showtext(Toggle Sound On/Off,buttonstyle);" onover="set(alpha,1);" onout="set(alpha,0.7);"/>


Have also tried just one id in the pausesoundtoggle call too but that didn't work either.

Any tips as to why? Thanks for any help

Red

2

Sunday, January 31st 2010, 11:28am

Try this one:
url="sound_btn.png" alpha="0.7" keep="false" align="righttop"
onclick="pausesoundtoggle(s1);
pausesoundtoggle(s2);"
onhover="showtext(Toggle Sound On/Off,buttonstyle);"
onover="set(alpha,1);" onout="set(alpha,0.7);"/>

usagi

Trainee

  • "usagi" started this thread

Posts: 98

Location: Australia

Occupation: Virtual tour creator, VR app developer

  • Send private message

3

Tuesday, February 2nd 2010, 1:33am

Tried your code Franze (thanks) but still not working.

Directional sound working okay and have the playsound3D(s1,....) and playsound(s2,....) calls in onloadcomplete near the top of the XML file and the sound button code near the bottom.



I'm thinking maybe pausesoundtoggle function doesn't have any effect when using directional sound. Just an assumption.

Can anyone verify this?

Thanks again



Red

4

Tuesday, February 2nd 2010, 8:03am

You`re sure, you`ve got the latest version of soundinterface?

usagi

Trainee

  • "usagi" started this thread

Posts: 98

Location: Australia

Occupation: Virtual tour creator, VR app developer

  • Send private message

5

Sunday, February 21st 2010, 7:22am

Yep, that was the prob. Thanks Franze.All solved now.