public class WaveFile extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
int |
INT_SIZE |
int |
NOT_SPECIFIED |
| 限定符和类型 | 方法和说明 |
|---|---|
AudioFormat |
getAudioFormat() |
Clip |
getClip() |
double |
getDurationTime() |
long |
getFramesCount() |
int |
getSampleInt(int sampleNumber)
Returns sample (amplitude value).
|
int |
getSampleRate() |
int |
getSampleSize() |
boolean |
isCanPlay() |
void |
play() |
void |
stop() |
public final int NOT_SPECIFIED
public final int INT_SIZE
public WaveFile(File file) throws UnsupportedAudioFileException, IOException
public boolean isCanPlay()
public void play()
public void stop()
public AudioFormat getAudioFormat()
public int getSampleSize()
public double getDurationTime()
public long getFramesCount()
public int getSampleInt(int sampleNumber)
public int getSampleRate()
public Clip getClip()
Copyright © 2024. All rights reserved.