Vizard 7 » Command Index » Vizard modules » viz » <viz>.setDebugSound3D
7.7

<viz>.setDebugSound3D

Set debug mode for 3D sound objects

<viz>.setDebugSound3D(  
mode  
)  
mode
Can be a True/False value or viz.TOGGLE to toggle the current state.

Remarks

When 3D sound debugging is enabled, a blue speaker icon will appear at the location of all currently playing 3D sounds. This is helpful for visualizing where 3D sound sources are originating from.

Return Value

None

Example

import viz
viz.go()

# Play fountain sound in piazza
piazza = viz.addChild('piazza.osgb')
piazza.playsound('fountain.wav',viz.LOOP,node='fountain-sound')

# Visualize location of sound
viz.setDebugSound3D(True)

See also

<node3d>.playsound
<viz>.setListenerSound3D