Package com.jackmeng.stl
Class stl_SNDCircular
java.lang.Object
com.jackmeng.stl.stl_SNDCircular
public class stl_SNDCircular
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description private stl_CircularBuffer
buffer
private int
buffer_size
private javax.sound.sampled.SourceDataLine
line
-
Constructor Summary
Constructors Constructor Description stl_SNDCircular()
stl_SNDCircular(int buffer_size, stl_CircularBuffer reference)
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
line
private javax.sound.sampled.SourceDataLine line -
buffer
-
buffer_size
private final int buffer_size
-
-
Constructor Details
-
stl_SNDCircular
public stl_SNDCircular() -
stl_SNDCircular
-
-
Method Details
-
open
public void open(java.io.File file) throws java.io.IOException, javax.sound.sampled.LineUnavailableException, javax.sound.sampled.UnsupportedAudioFileException- Throws:
java.io.IOException
javax.sound.sampled.LineUnavailableException
javax.sound.sampled.UnsupportedAudioFileException
-
play
public void play() -
pause
public void pause() -
stop
public void stop() -
close
public void close()
-