FileDocCategorySizeDatePackage
QSoundABBToneCtrl.javaAPI DocphoneME MR2 API (J2ME)1793Wed May 02 18:00:46 BST 2007com.sun.mmedia

QSoundABBToneCtrl

public class QSoundABBToneCtrl extends Object implements ToneControl

Fields Summary
private QSoundABBToneSequencePlayer
qstsp
Constructors Summary
QSoundABBToneCtrl(QSoundABBToneSequencePlayer tsp)

        qstsp = tsp;
    
Methods Summary
public voidsetSequence(byte[] seq)

        int state = qstsp.getState();
        
        if(seq == null)
            throw new IllegalArgumentException("null sequence");
        
        if((state == Player.PREFETCHED) || (state == Player.STARTED))
            throw new IllegalStateException("Prefetched or Started");
        
        if(!qstsp.setSequence(seq))
            throw new IllegalArgumentException("Bad file");