📄 play.java
字号:
package bin;
import javax.swing.JApplet;
import java.applet.AudioClip;
class Play
{
JApplet ap = new JApplet();
AudioClip au = ap.newAudioClip(Play.class.getResource("..\\audio\\thirdGate.mid"));
public static void buttonClipStats()
{
JApplet ap = new JApplet();
AudioClip au = ap.newAudioClip(Play.class.getResource("..\\audio\\buttonMusic.wav"));
au.play();
}
public void muiscPlay()
{
au.loop();
}
public void muiscStop()
{
au.stop();
}
public static void frameMove()
{
JApplet ap1 = new JApplet();
AudioClip au1 = ap1.newAudioClip(Play.class.getResource("..\\audio\\frameMove.wav"));
au1.play();
}
public static void taxisOpen()
{
JApplet ap2 = new JApplet();
AudioClip au2 = ap2.newAudioClip(Play.class.getResource("..\\audio\\frm3.au"));
au2.play();
}
public static void taxisOk()
{
JApplet ap3 = new JApplet();
AudioClip au3 = ap3.newAudioClip(Play.class.getResource("..\\audio\\frm.au"));
au3.play();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -