2004-05-30 11:09:46 +00:00
|
|
|
# $Id$
|
2004-05-24 07:49:50 +00:00
|
|
|
# Documentation for CD Actuator
|
2004-06-02 12:43:27 +00:00
|
|
|
from SCA_IActuator import *
|
2004-05-24 07:49:50 +00:00
|
|
|
|
2004-06-02 12:43:27 +00:00
|
|
|
class KX_CDActuator(SCA_IActuator):
|
2004-05-24 07:49:50 +00:00
|
|
|
def startCD():
|
|
|
|
"""
|
|
|
|
Starts the CD playing.
|
|
|
|
"""
|
|
|
|
def stopCD():
|
|
|
|
"""
|
|
|
|
Stops the CD playing.
|
|
|
|
"""
|
|
|
|
def pauseCD():
|
|
|
|
"""
|
|
|
|
Pauses the CD.
|
|
|
|
"""
|
|
|
|
def setGain(gain):
|
|
|
|
"""
|
|
|
|
Sets the gain (volume) of the CD.
|
|
|
|
|
|
|
|
@type gain: float
|
|
|
|
@param gain: the gain to set the CD to. 0.0 = silent, 1.0 = max volume.
|
|
|
|
"""
|
|
|
|
def getGain():
|
|
|
|
"""
|
|
|
|
Gets the current gain (volume) of the CD.
|
|
|
|
|
2004-05-31 13:06:04 +00:00
|
|
|
@rtype: float
|
|
|
|
@return: Between 0.0 (silent) and 1.0 (max volume)
|
2004-05-24 07:49:50 +00:00
|
|
|
"""
|
|
|
|
|