View Single Post
Old 09-19-2003, 11:59 AM
FlyingWren FlyingWren is offline
Join Date: Mar 2003
Location: Fargo, North Dakota, USA
Posts: 48
3D sound & child objects

Phenomenologically, 3D-sound played from objects loaded with viz.add() seem to be generated from the correct position. However, 3D-sound playback from objects loaded with viz.getchild() seem to be at the wrong position. For example,

objRoom = viz.add('Room.wrl')
objVent = objRoom.getchild('obj_Vent')

# start sound playing
objVent.playsound('air-vent.wav', viz.LOOP)

The 'air-vent' wave file seems to be playing at the position of the "Room" object, not the actual "Vent" subobject.
Reply With Quote