|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectmokit.ui.SoundPlayer
public class SoundPlayer
サウンドデータを再生するための機能を提供します。
| フィールドの概要 | |
|---|---|
static int |
BGM
BGMサウンド |
static int |
SE
SEサウンド |
| メソッドの概要 | |
|---|---|
static SoundPlayer |
getInstance()
サウンドプレイヤーを取得します。 |
void |
mediaAction(com.docomostar.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 MktUIException
sound - サウンドデータ
MktUIException - サウンドデータが初期化されていない場合などに発生します。
public void setSE(SoundData sound)
throws MktUIException
sound - サウンドデータ
MktUIException - サウンドデータが初期化されていない場合などに発生します。public void play(int type)
type - サウンドの種別public void pause(int type)
type - サウンドの種別public void restart(int type)
type - サウンドの種別public void stop(int type)
type - サウンドの種別
public void mediaAction(com.docomostar.ui.MediaPresenter source,
int type,
int param)
com.docomostar.ui.MediaListener 内の mediaActionsource - 通知の発生元であるメディアプレゼンタtype - イベントの種類param - イベントのパラメータ
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||