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

QSoundABBVolumeCtrl

public class QSoundABBVolumeCtrl extends Object implements javax.microedition.media.control.VolumeControl

Fields Summary
private int
peer
private ABBBasicPlayer
player
Constructors Summary
public QSoundABBVolumeCtrl(int lp)

        peer = lp;
        player = null;
    
public QSoundABBVolumeCtrl(int lp, javax.microedition.media.Player pl)

        peer = lp;
        
        player = (pl instanceof ABBBasicPlayer) ? (ABBBasicPlayer)pl : null;
    
Methods Summary
public intgetLevel()

        return nGetLevel(peer); 
    
public booleanisMuted()

        return nIsMuted(peer);
    
private native intnGetLevel(int peer)

private native booleannIsMuted(int peer)

private native intnSetLevel(int peer, int level)

private native voidnSetMute(int peer, boolean mute)

public intsetLevel(int level)

        if(player != null)
            player.sendEvent(javax.microedition.media.PlayerListener.VOLUME_CHANGED, this);
        
        return nSetLevel(peer, level);
    
public voidsetMute(boolean mute)

        
        nSetMute(peer, mute);