Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
コンストラクタと説明 |
---|
AudioPlay(String fname)
Audioファイルを無限に再生するよう初期化します。
|
AudioPlay(String fname,
int nTimes)
Audioファイルを指定された回数再生するよう初期化します。
|
AudioPlay(String fname,
int nTimes,
float volume)
Audioファイルを指定された回数再生するよう初期化します。
|
修飾子とタイプ | メソッドと説明 |
---|---|
boolean |
getPlayFlg()
演奏中フラグを取得します。
|
protected void |
openLine() |
protected AudioInputStream |
openSource() |
void |
run()
演奏を実行します。
|
void |
setPlayFlg(boolean b)
演奏中フラグを設定します。
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public AudioPlay(String fname, int nTimes, float volume) throws Exception
fname
- 再生するAudioファイルの名前。nTimes
- 再生回数。-1以下を指定すると無限ループします。volume
- ボリューム値Exception
public AudioPlay(String fname, int nTimes) throws Exception
fname
- 再生するAudioファイルの名前。nTimes
- 再生回数。-1以下を指定すると無限ループします。Exception
protected AudioInputStream openSource() throws Exception
Exception
public boolean getPlayFlg()
public void setPlayFlg(boolean b)
b
- 演奏中フラグCopyright © 2021 S.D.S Co.,Ltd.. All rights reserved.