📄 toneplayer.java
字号:
// Decompiled by DJ v3.8.8.85 Copyright 2005 Atanas Neshkov Date: 2005-8-14 11:30:47
// Home Page : http://members.fortunecity.com/neshkov/dj.html - Check often for new version!
// Decompiler options: packimports(3)
// Source File Name: RollerCanvas.java
package stone;
import com.nokia.mid.sound.Sound;
import java.io.InputStream;
import java.io.PrintStream;
class TonePlayer
{
TonePlayer()
{
if(sound == null)
{
sound = new Sound(0, 1L);
try
{
InputStream tune = getClass().getResourceAsStream("/hithard.wav");
int i = tune.read(sound1buf, 0, 3300);
}
catch(Exception e)
{
System.out.println("EXEC IN toneplayer.".concat(String.valueOf(String.valueOf(e))));
}
}
}
public void playSound1()
{
try
{
sound.stop();
sound.init(sound1buf, 5);
sound.play(1);
}
catch(Exception e)
{
System.out.println("exc in playFireSound:".concat(String.valueOf(String.valueOf(e))));
}
}
public static void stop()
{
if(sound != null)
sound.stop();
}
private static Sound sound;
private static final int RNG_LEN1 = 3300;
private static byte sound1buf[] = new byte[3300];
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -