📄 e725. continuously playing a sampled audio file.txt
字号:
Only DataLine objects that are of type Clip can be repeated. To create a clip, see e723 Loading and Playing Sampled Audio.
// Play once
clip.start();
// Play and loop forever
clip.loop(Clip.LOOP_CONTINUOUSLY);
// Play and repeat for a certain number of times
int numberOfPlays = 3;
clip.loop(numberOfPlays-1);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -