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):
|
2009-04-20 15:06:46 +00:00
|
|
|
"""
|
|
|
|
CD Controller actuator.
|
|
|
|
@ivar volume: controls the volume to set the CD to. 0.0 = silent, 1.0 = max volume.
|
|
|
|
@type volume: float
|
|
|
|
@ivar track: the track selected to be played
|
|
|
|
@type track: integer
|
|
|
|
@ivar gain: the gain (volume) of the CD between 0.0 and 1.0.
|
|
|
|
@type gain: float
|
|
|
|
"""
|
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.
|
|
|
|
"""
|
2009-04-20 15:06:46 +00:00
|
|
|
def resumeCD():
|
|
|
|
"""
|
|
|
|
Resumes the CD after a pause.
|
|
|
|
"""
|
|
|
|
def playAll():
|
|
|
|
"""
|
|
|
|
Plays the CD from the beginning.
|
|
|
|
"""
|
|
|
|
def playTrack(trackNumber):
|
|
|
|
"""
|
|
|
|
Plays the track selected.
|
|
|
|
"""
|
2004-05-24 07:49:50 +00:00
|
|
|
def setGain(gain):
|
|
|
|
"""
|
2009-04-20 15:06:46 +00:00
|
|
|
DEPRECATED: Use the volume property.
|
2004-05-24 07:49:50 +00:00
|
|
|
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():
|
|
|
|
"""
|
2009-04-20 15:06:46 +00:00
|
|
|
DEPRECATED: Use the volume property.
|
2004-05-24 07:49:50 +00:00
|
|
|
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
|
|
|
"""
|
|
|
|
|