Page 1 of 1

Spot audio 360°

PostPosted: Fri Jan 31, 2014 2:13 pm
by alexdziga
Bonjour,
Je voudrais que le spot audio fonctionne à 360° et non par défaut à 90°
Que faut t'il changer dans le xml?
Merci BCP

Re: Spot audio 360°

PostPosted: Fri Jan 31, 2014 2:31 pm
by mediavets
alexdziga wrote:Bonjour,
Je voudrais que le spot audio fonctionne à 360° et non par défaut à 90°
Que faut t'il changer dans le xml?
Merci BCP


Then why not use the panorama background sound option instead.

Audio spots are specifically intended for directional sound.

........

BTW as I understand it directional sound is not supported in HTML5 tours.

Re: Spot audio 360°

PostPosted: Fri Jan 31, 2014 3:11 pm
by alexdziga
Yes i Know this possibility, i want that user clic on specific spot audio and ear at 360°. See the code, where i can put the range ?
Code: Select all
<hotspot name="spotpoint657"
           ath="49.274991" atv="28.901339"
           visible="true"
           style="Iconaudio_spot"
           descriptionid=""
           onclick="onclickspotpoint657"
           tooltip="spotpoint657_tooltip"
           />
  <action name="onclickspotpoint657">playsound3Dwhenpossible(soundspotpoint657, %$videos_sounds_path%/sounds/code1.mp3,true,49.274991,28.901339false);
  </action>

Re: Spot audio 360°

PostPosted: Fri Jan 31, 2014 3:28 pm
by mediavets
alexdziga wrote:Yes i Know this possibility, i want that user clic on specific spot audio and ear at 360°. See the code, where i can put the range ?
Code: Select all
<hotspot name="spotpoint657"
           ath="49.274991" atv="28.901339"
           visible="true"
           style="Iconaudio_spot"
           descriptionid=""
           onclick="onclickspotpoint657"
           tooltip="spotpoint657_tooltip"
           />
  <action name="onclickspotpoint657">playsound3Dwhenpossible(soundspotpoint657, %$videos_sounds_path%/sounds/code1.mp3,true,49.274991,28.901339false);
  </action>


Then don't use an audio hotspot, use some other form of hotspot with a style which includes a play sound action.

Re: Spot audio 360°

PostPosted: Fri Jan 31, 2014 5:07 pm
by alexdziga
I use exactly this method but the sound is directionally 90°, I want just change the code for sound 360° range

Re: Spot audio 360°

PostPosted: Fri Jan 31, 2014 6:56 pm
by mediavets
alexdziga wrote:Yes i Know this possibility, i want that user clic on specific spot audio and ear at 360°. See the code, where i can put the range ?
Code: Select all
<hotspot name="spotpoint657"
           ath="49.274991" atv="28.901339"
           visible="true"
           style="Iconaudio_spot"
           descriptionid=""
           onclick="onclickspotpoint657"
           tooltip="spotpoint657_tooltip"
           />
  <action name="onclickspotpoint657">playsound3Dwhenpossible(soundspotpoint657, %$videos_sounds_path%/sounds/code1.mp3,true,49.274991,28.901339false);
  </action>


Just change 'playsound3Dwhenpossible' to 'playsound'.

That should do it.

However it also seems to disable the menu bar stop/start sounds function. =(

..................

I think it should be an option in this case to have directional sound or not.

Re: Spot audio 360°

PostPosted: Fri Jan 31, 2014 7:13 pm
by mediavets
Or add the parameter range=360.

For example:

<!-- **** 1 Point Spots **** -->

<hotspot name="spotpoint11"
ath="-74.533552" atv="-5.606557"
visible="true"
style="IconSpotplaysound"
descriptionid=""
onclick="onclickspotpoint11"
/>
<action name="onclickspotpoint11">playsound3Dwhenpossible(soundspotpoint11, %$videos_sounds_path%/sounds/sleep_away.mp3,range=360,true,-74.533552,-5.606557false);
</action>

....................

Now the Sound icon on the toolbar seems to be able to turn off the sound but does not restart the sound, you have to click (again) on the hotspot to do that.

Weird.

Re: Spot audio 360°

PostPosted: Mon Feb 03, 2014 9:11 am
by benji33
Yes mediavets it's the way.

"Stop sounds" stop the sounds and this hotspot sound is loaded on click so need to click again to open it again (for the moment).