|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
java.lang.Objectmokit.media.SoundPlayer
サウンドデータを再生するための機能を提供します。
JSCLでは下記データの同時再生がサポートされていますが、このクラスではSMAF(mmf)をサポートしていません。
| フィールドの概要 | |
static int |
BGM
BGMサウンド |
static int |
SE
SEサウンド |
| メソッドの概要 | |
static SoundPlayer |
getInstance()
サウンドプレイヤーを取得します。 |
void |
pause(int type)
一時停止します。 |
void |
play(int type)
再生します。 |
void |
remove(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 remove(int type)
type - 開放するサウンド
|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||