MoltenPiece pieces in a MoltenMaster
Inherits from: Object
MoltenMaster.pieces is an array whose items are of MoltenPiece type. Pieces have initActions for allocating resources for a piece, playActions that actually start playback, and finishActions that does the cleanup (fade out, deallocation etc.).
See also: MoltenMaster
Creation / Class Methods
You don't create an instance of this class directly.
Accessing Instance and Class Variables
initAction_(arg1)
initAction
A function you should provide, which allocates the necessary resources (loading of buffers etc.) before playAction executes. You should fork a thread in this function (eg. a Routine) wait until you are done with your initialization and should call "signal" on your parent MoltenMaster instance.
playAction_(arg1)
playAction
The action that actually starts playback.You should fork a thread in this function (eg. a Routine) wait until you are done with your initialization and should call "signal" on your parent MoltenMaster instance.
finishAction_(arg1)
finishAction
For this action, you should provide a function that does the necessary cleanup for the piece. You should fork a thread in this function (eg. a Routine) wait until you are done with your initialization and should call "signal" on your parent MoltenMaster instance.
infoString_(arg1)
infoString
If you want to store additional info on a piece to use, you can use this member.
durationString_(arg1)
durationString
You can provide duration info for a piece (as String) with this member variable. Default is the string "inf".
nameString_(arg1)
nameString
Name of the piece. Default is "Untitled".
Examples
See MoltenMaster help for an example.