<!--
	krpano 1.0.8 
	- soundinterface - directional sound example
-->

<krpano version="1.0.8" onstart="showtext('[b][i]krpano[br]directional sound example[/i][/b]', infostyle);">

	<!-- text styles for startup text and onhover text -->
	<textstyle name="infostyle"
	           origin="center" edge="center" yoffset="-100" textalign="center" background="false" border="false"
	           fontsize="40" textcolor="0xFFFFFF" bold="false" effect="glow(0xFFFFFF,0.7,4,2);glow(0x000000,1,4,2);dropshadow(3,45,0x000000,2,0.6);"
	           showtime="10.0" fadeintime="1.0" fadetime="1.0"
	           />


	<plugin name="soundinterface" url="%SWFPATH%/plugins/soundinterface.swf" alturl="%SWFPATH%/plugins/soundinterface.js" rootpath="%CURRENTXML%" preload="true" />
	
	
	<!-- a button to mute/unmute the sound -->
	<plugin name="snd" url="soundonoff.png" align="leftbottom" x="10" y="10" alpha="0.25" scale="1.0" 
		    onover="tween(alpha,1);" 
		    onout="tween(alpha,0.25);" 
	        crop="0|0|50|50"
	        onclick="switch(soundinterface.mute); switch(crop, 0|0|50|50, 0|50|50|50);" />



	<!-- play sound at 0/0 -->
	<hotspot name="b1" url="button1.png" ath="0"   atv="0" onclick="playsound3D(s1,music1.mp3, 0,0);" />

	<!-- play sound at 90/0 - range 120 -->
	<hotspot name="b2" url="button2.png" ath="90"  atv="0" onclick="playsound3D(s2,music2.mp3, 90,0, 120); " />

	<!-- play sound at hotspot positon -->
	<hotspot name="b3" url="button3.png" ath="180" atv="0" onclick="playsound3DHS(s3,music3.mp3, b3);" />

	<!-- stop all other sounds, play sound at moving hotspot positon -->
	<hotspot name="b4" url="button4.png" ath="270" atv="0" onclick="stopallsounds(); playsound3DHS(s4, music4.mp3, b4); tween(ath,630,20);" />


	<!-- the playsound3D and playsound3DHS action are not available in HTML5, but add dummy actions here that play the sound normally -->
	<action name="playsound3D" devices="html5">playsound(%1,%2);</action>
	<action name="playsound3DHS" devices="html5">playsound(%1,%2);</action>


	<!-- pano -->
	<image type="CUBESTRIP">
		<cubestrip url="pano.jpg" />
	</image>
	
	<!-- view settings -->
	<view hlookat="0" vlookat="0" fovtype="MFOV" fov="90" fovmin="60" fovmax="120" />


</krpano>
