Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
SetListener
Syntax
C++
int SetListener(IFunctionHandler * pH, int nListenerID, Vec3 vPos, Vec3 vVel, Vec3 vForward, Vec3 vTop, bool bActive, float fRecord);
Parameters 
Description 
int nListenerID 
ID of the Listener to be removed 
Vec3 vPos 
Position of the Listener 
Vec3 vVel 
Velocity for Doppler, (0,0,0) to disable or leave out for automatic calculation 
Vec3 vForward 
a Lookat vector of the Listener 
Vec3 vTop 
a up vector of the Listener 
bool bActive 
state of Listener (active/unactive) 
float fRecord 
input signal strength [0.0-1.0] to fade in and out 

bResult - true/false if Listener was successfully changed

Syntax: Sound.SetListener( IFunctionHandler *pH ) 

Sets attributes to a Listener

Copyright (c) 2012. All rights reserved.