Spot audio 360°  

no avatar
alexdziga
Member
 
Posts: 11
Joined: Tue Jan 17, 2012 10:08 am
Location: paris- morbihan

Spot audio 360°

by alexdziga » Fri Jan 31, 2014 2:13 pm

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

no avatar
mediavets
Moderator
 
Posts: 14268
Joined: Wed Nov 14, 2007 2:12 pm
Location: Isleham, Cambridgeshire, UK.

Re: Spot audio 360°

by mediavets » Fri Jan 31, 2014 2:31 pm

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.

no avatar
alexdziga
Member
 
Posts: 11
Joined: Tue Jan 17, 2012 10:08 am
Location: paris- morbihan

Re: Spot audio 360°

by alexdziga » Fri Jan 31, 2014 3:11 pm

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>

no avatar
mediavets
Moderator
 
Posts: 14268
Joined: Wed Nov 14, 2007 2:12 pm
Location: Isleham, Cambridgeshire, UK.

Re: Spot audio 360°

by mediavets » Fri Jan 31, 2014 3:28 pm

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.
Attachments
1-ptp2rc2-spot-play-spound.jpg

no avatar
alexdziga
Member
 
Posts: 11
Joined: Tue Jan 17, 2012 10:08 am
Location: paris- morbihan

Re: Spot audio 360°

by alexdziga » Fri Jan 31, 2014 5:07 pm

I use exactly this method but the sound is directionally 90°, I want just change the code for sound 360° range

no avatar
mediavets
Moderator
 
Posts: 14268
Joined: Wed Nov 14, 2007 2:12 pm
Location: Isleham, Cambridgeshire, UK.

Re: Spot audio 360°

by mediavets » Fri Jan 31, 2014 6:56 pm

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.

no avatar
mediavets
Moderator
 
Posts: 14268
Joined: Wed Nov 14, 2007 2:12 pm
Location: Isleham, Cambridgeshire, UK.

Re: Spot audio 360°

by mediavets » Fri Jan 31, 2014 7:13 pm

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.

User avatar
benji33
Kolor Team
 
Posts: 3043
Joined: Tue Apr 09, 2013 10:59 am
Location: France

Re: Spot audio 360°

by benji33 » Mon Feb 03, 2014 9:11 am

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).


Return to Panotour bugs et discussions

Who is online

Users browsing this forum: No registered users and 1 guest