📄 e731. determining when a sampled audio player has finished playing.txt
字号:
An audio clip fires a line event when the audio sample has finished playing. If the audio clip is played in a loop (see e725 Continuously Playing a Sampled Audio File), the event is fired only after the loop is finished.
// To create a Clip object, see e723 Loading and Playing Sampled Audio
// Add a listener for line events
clip.addLineListener(new LineListener() {
public void update(LineEvent evt) {
if (evt.getType() == LineEvent.Type.STOP) {
}
}
});
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -