📄 iaudioplayer.java
字号:
package tcpSoundCommunication;
import java.io.*;
import java.net.*;
public interface IAudioPlayer
{
/* Load the audio from a URL */
public void loadAudio(URL url) throws Exception;
/* Load the audio from a File */
public void loadAudio(File file) throws Exception;
/* Load the audio from a File */
public void loadAudio(InputStream stream) throws Exception;
/* Play the audio */
public void play();
/* Pause the audio */
public void pause();
/* Stop the audio from playing */
public void stop();
/* set the gain for playback */
public void setGain(float dB);
/* set the pan for playback */
public void setPan(float pan);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -