Hi Richardolsson, Thanks for the reply
When I use sound3D.play() the sound starts playing but when I move the camera away or close to the sound3D position there is no change in volume, neither in pan... the sound is always constant... Don't know what I'm doing wrong here :( Couldn't find any example on how to use the Sound3D class in google neither... Thanks once again! On 30 Nov, 09:43, richardolsson <[email protected]> wrote: > Hi Miguel, > > Do you ever invoke sound3D.play()? Note that you have to start playing > the sound, using the Sound3D API which is similar to the native Sound > API. It is very rare that you should ever have to access the driver > directly. The Sound3D API will use the driver internally for the 3D > effect. > > Let me know if this helps! > > Cheers > /R > > On Nov 30, 1:08 am, Miguel Kennedy <[email protected]> wrote: > > > > > > > > > Sorry I had a typo in my previous post > > > Sound3D(assetsLoader.getSound(modelsContainer[i].modelName + "Sound", > > true), camera, d); > > > is actually > > > Sound3D(assetsLoader.getSound(modelsContainer[i].modelName + "Sound", > > true), camera, driver); > > > any help would be appreciated > > > thanks > > > On 29 Nov, 23:44, Miguel Kennedy <[email protected]> wrote: > > > > Hey guys... > > > > I'm trying to use the Sound3D but when I approach the Sound3D position > > > it doesn't play any sound > > > > var driver:SimplePanVolumeDriver = new SimplePanVolumeDriver(); > > > var sound3D:Sound3D = new > > > Sound3D(assetsLoader.getSound(modelsContainer[i].modelName + "Sound", > > > true), camera, d); > > > sound3D.x = 175; > > > sound3D.y = 0; > > > sound3D.z = 18; > > > > if i set driver.play() I can hear my sound... but the volume and > > > panning are constant... I hear it all the time... so I know my > > > soundSource is ok... > > > > if I comment out driver.play(), when my camera approaches the sound3D > > > coordinates I can't hear any sound at all > > > > can anyone shed some light please? > > > > thanks!
