Module KX_CDActuator :: Class KX_CDActuator

Class KX_CDActuator

source code

SCA_ILogicBrick.SCA_ILogicBrick --+    
                                  |    
        SCA_IActuator.SCA_IActuator --+
                                      |
                                     KX_CDActuator

Instance Methods
 
startCD()
Starts the CD playing.
source code
 
stopCD()
Stops the CD playing.
source code
 
pauseCD()
Pauses the CD.
source code
 
setGain(gain)
Sets the gain (volume) of the CD.
source code
float
getGain()
Gets the current gain (volume) of the CD.
source code

Inherited from SCA_ILogicBrick.SCA_ILogicBrick: getExecutePriority, getOwner, setExecutePriority

Method Details

setGain(gain)

source code 
Sets the gain (volume) of the CD.
Parameters:
  • gain (float) - the gain to set the CD to. 0.0 = silent, 1.0 = max volume.

getGain()

source code 
Gets the current gain (volume) of the CD.
Returns: float
Between 0.0 (silent) and 1.0 (max volume)