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.

    Code
    <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

  • 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);"/>

  • 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

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!