|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectmokit.media.SoundPlayer
サウンドデータを再生するための機能を提供します。
フィールドの概要 | |
static int |
BGM
BGMサウンド |
static int |
SE
SEサウンド |
メソッドの概要 | |
static SoundPlayer |
getInstance()
サウンドプレイヤーを取得します。 |
void |
mediaAction(com.nttdocomo.ui.MediaPresenter source,
int type,
int param)
サウンド関連イベントが発生した際に実行されます。 |
void |
pause(int type)
一時停止します。 |
void |
play(int type)
再生します。 |
void |
restart(int type)
一時停止から再開します。 |
void |
setBGM(SoundData sound)
BGMサウンドをセットします。 |
void |
setSE(SoundData sound)
SEサウンドをセットします。 |
void |
stop(int type)
停止します。 |
クラス java.lang.Object から継承したメソッド |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
public static final int BGM
public static final int SE
メソッドの詳細 |
public static SoundPlayer getInstance()
public void setBGM(SoundData sound) throws MktMediaException
sound
- サウンドデータ
MktMediaException
- サウンドデータが初期化されていない場合などに発生します。public void setSE(SoundData sound) throws MktMediaException
sound
- サウンドデータ
MktMediaException
- サウンドデータが初期化されていない場合などに発生します。public void play(int type)
public void pause(int type)
public void restart(int type)
public void stop(int type)
public void mediaAction(com.nttdocomo.ui.MediaPresenter source, int type, int param)
com.nttdocomo.ui.MediaListener
内の mediaAction
source
- 通知の発生元であるメディアプレゼンタtype
- イベントの種類param
- イベントのパラメータ
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |