glscene

 

TGLSMBass

Page history last edited by skinhat 4 yrs ago

Given the position of the listener (eg the camera) TGLSMBass will emit a sound based upon the sound emitters (TGLBSoundEmitter) in the scene. Emitters are added to the behaviour property of a GLScene object. The sound emitted is in stereo and if a sound emitter is a long way from the camera it will not be as loud an emitter close to the camera. Also if a sound emitter is left of the camera it will sound as though it is to your left. The loudness and stereo position of the emitter is calculated in the onProgress handler of the TGLCadencer property.

Important TGLSMBass properties include:

listener : TGLBaseSceneObject

The object that is listening for sound. Usually it is set as the camera so that the sound is in relation to the viewer.

cadencer : TGLCadencer

The sound from the emitters is calculated in the onprogress handler of the cadencer therefore a cadencer must be specified.

Demo: CVS/Demos/sound/3Dsound

Unit: GLSMBASS

Descends from TGLSoundManager.

Comments (0)

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