下面列出了javax.sound.sampled.LineEvent#getSource ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
public void update(LineEvent event) {
// �X�g�b�v���Ō�܂ōĐ����ꂽ�ꍇ
if (event.getType() == LineEvent.Type.STOP) {
Clip clip = (Clip) event.getSource();
clip.stop();
clip.setFramePosition(0); // �Đ��ʒu���ŏ��ɖ߂�
}
}
public void update(LineEvent event) {
// �X�g�b�v���Ō�܂ōĐ����ꂽ�ꍇ
if (event.getType() == LineEvent.Type.STOP) {
Clip clip = (Clip) event.getSource();
clip.stop();
clip.setFramePosition(0); // �Đ��ʒu���ŏ��ɖ߂�
}
}
public void update(LineEvent event) {
// If you stop playback or to the end
if(event.getType() == LineEvent.Type.STOP) {
Clip clip = (Clip) event.getSource();
clip.stop();
clip.setFramePosition(0); // Playback position back to the beginning
}
}
public void update(LineEvent event) {
// �X�g�b�v���Ō�܂ōĐ����ꂽ�ꍇ
if (event.getType() == LineEvent.Type.STOP) {
Clip clip = (Clip) event.getSource();
clip.stop();
clip.setFramePosition(0); // �Đ��ʒu���ŏ��ɖ߂�
}
}
public void update(LineEvent event) {
// �X�g�b�v���Ō�܂ōĐ����ꂽ�ꍇ
if (event.getType() == LineEvent.Type.STOP) {
Clip clip = (Clip) event.getSource();
clip.stop();
clip.setFramePosition(0); // �Đ��ʒu���ŏ��ɖ߂�
}
}
public void update(LineEvent event) {
// �X�g�b�v���Ō�܂ōĐ����ꂽ�ꍇ
if (event.getType() == LineEvent.Type.STOP) {
Clip clip = (Clip) event.getSource();
clip.stop();
clip.setFramePosition(0); // �Đ��ʒu���ŏ��ɖ߂�
}
}
public void update(LineEvent event) {
// �X�g�b�v���Ō�܂ōĐ����ꂽ�ꍇ
if (event.getType() == LineEvent.Type.STOP) {
Clip clip = (Clip) event.getSource();
clip.stop();
clip.setFramePosition(0); // �Đ��ʒu���ŏ��ɖ߂�
}
}