glscene

 

TGLBSoundEmitter

Page history last edited by skinhat 4 yrs ago

Allows a GLScene object to be a sound emitter. It can be added to the behaviour property of a TGLSceneObject at design time. For example a 3D owl could have a sound emitter that hoots. The sound heard depends on the position of the listener which is set in the TGLSMBass component. Typically it is the camera therefore if the sound emitter moves (eg the owl) then the sound will change depending on the emitters position relative to the camera.

Important TGLBSoundEmitter properties include:

source: TGLBaseSoundSource

Allows the setting of the sounds name, the sound library and whether the sound loops.

playing: boolean

Whether or not the sound is playing

Demo: CVS/Demos/sound/3Dsound

Unit: GLSound

Comments (0)

You don't have permission to comment on this page.