|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectddf.mimin.javasound.JSBaseAudioRecordingStream
public abstract class JSBaseAudioRecordingStream
| Field Summary | |
|---|---|
protected javax.sound.sampled.AudioInputStream |
ais
|
protected javax.sound.sampled.AudioFormat |
format
|
protected JSMinim |
system
|
| Method Summary | |
|---|---|
int |
bufferSize()
The size of the buffer that will be sent to listeners and effects. |
void |
close()
Closes the resource, releasing any memory. |
javax.sound.sampled.Control[] |
getControls()
Returns the Controls available for this AudioResource. |
javax.sound.sampled.AudioFormat |
getFormat()
Returns the AudioFormat of this AudioResource. |
int |
getLoopCount()
How many loops are left to go. |
int |
getMillisecondPosition()
Gets the current millisecond position of the source. |
boolean |
isPlaying()
|
void |
loop(int n)
Starts looping playback from the current position. |
void |
open()
Opens the resource to be used. |
void |
pause()
Stops playback of the source. |
void |
play()
Starts playback of the source. |
protected abstract void |
rewind()
|
void |
run()
|
void |
setAudioEffect(AudioEffect effect)
Set the AudioEffect to apply to this stream. |
void |
setAudioListener(AudioListener listener)
Set the AudioListener to receive samples from this source. |
void |
setLoopPoints(int start,
int stop)
Sets the loops points in the source, in milliseconds |
void |
setMillisecondPosition(int millis)
Sets the current millisecond position of the source. |
protected abstract int |
skip(int millis)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ddf.minim.spi.AudioRecording |
|---|
getMetaData, getMillisecondLength |
| Field Detail |
|---|
protected javax.sound.sampled.AudioInputStream ais
protected javax.sound.sampled.AudioFormat format
protected JSMinim system
| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablepublic void play()
AudioRecording
play in interface AudioRecordingpublic boolean isPlaying()
isPlaying in interface AudioRecordingpublic void pause()
AudioRecording
pause in interface AudioRecordingpublic void loop(int n)
AudioRecording
loop in interface AudioRecordingn - the number of times playback should loop back from the loop's
end position to the loop's start position, or
Minim.LOOP_CONTINUOUSLY to indicate that looping should continue
until interruptedpublic void open()
AudioResource
open in interface AudioResourcepublic void close()
AudioResource
close in interface AudioResourcepublic int bufferSize()
AudioStream
bufferSize in interface AudioStreampublic javax.sound.sampled.AudioFormat getFormat()
AudioResource
getFormat in interface AudioResourcepublic int getLoopCount()
AudioRecording
getLoopCount in interface AudioRecording
public void setLoopPoints(int start,
int stop)
AudioRecording
setLoopPoints in interface AudioRecordingstart - the position of the beginning of the loopstop - the position of the end of the looppublic int getMillisecondPosition()
AudioRecording
getMillisecondPosition in interface AudioRecordingpublic void setMillisecondPosition(int millis)
AudioRecording
setMillisecondPosition in interface AudioRecordingmillis - the posititon to cue the playback head topublic javax.sound.sampled.Control[] getControls()
AudioResource
getControls in interface AudioResourcepublic void setAudioEffect(AudioEffect effect)
AudioStream
setAudioEffect in interface AudioStreameffect - the AudioEffect to apply to the streampublic void setAudioListener(AudioListener listener)
AudioStream
setAudioListener in interface AudioStreamlistener - the AudioListener to receive samplesprotected abstract void rewind()
protected abstract int skip(int millis)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||