Package ipsk.audio.io.push
Class GrowingTempFileAudioSource
- java.lang.Object
-
- ipsk.audio.io.push.GrowingTempFileAudioSource
-
- All Implemented Interfaces:
AudioSource,GrowingAudioSource,IAudioOutputStream,IOutputStream,java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public class GrowingTempFileAudioSource extends java.lang.Object implements GrowingAudioSource, IAudioOutputStream
- Author:
- klausj
-
-
Field Summary
-
Fields inherited from interface ipsk.audio.AudioSource
DATA_FLAVOR
-
-
Constructor Summary
Constructors Constructor Description GrowingTempFileAudioSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGrowListener(GrowListener l)voidclose()voidflush()javax.sound.sampled.AudioFormatgetAudioFormat()javax.sound.sampled.AudioInputStreamgetAudioInputStream()Returns a new audio input stream.javax.sound.sampled.AudioFormatgetFormat()longgetFrameLength()booleanisFinished()voidrelease()voidremoveGrowListener(GrowListener l)voidsetAudioFormat(javax.sound.sampled.AudioFormat audioFormat)voidwrite(byte[] buf, int offset, int len)
-
-
-
Method Detail
-
getAudioInputStream
public javax.sound.sampled.AudioInputStream getAudioInputStream() throws AudioSourceExceptionDescription copied from interface:AudioSourceReturns a new audio input stream.- Specified by:
getAudioInputStreamin interfaceAudioSource- Returns:
- a new audio input stream
- Throws:
AudioSourceException
-
getFrameLength
public long getFrameLength() throws AudioSourceException- Specified by:
getFrameLengthin interfaceAudioSource- Throws:
AudioSourceException
-
getFormat
public javax.sound.sampled.AudioFormat getFormat() throws AudioSourceException- Specified by:
getFormatin interfaceAudioSource- Throws:
AudioSourceException
-
addGrowListener
public void addGrowListener(GrowListener l)
- Specified by:
addGrowListenerin interfaceGrowingAudioSource
-
removeGrowListener
public void removeGrowListener(GrowListener l)
- Specified by:
removeGrowListenerin interfaceGrowingAudioSource
-
write
public void write(byte[] buf, int offset, int len) throws java.io.IOException- Specified by:
writein interfaceIOutputStream- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException- Specified by:
flushin interfacejava.io.Flushable- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
getAudioFormat
public javax.sound.sampled.AudioFormat getAudioFormat()
- Specified by:
getAudioFormatin interfaceIAudioOutputStream
-
setAudioFormat
public void setAudioFormat(javax.sound.sampled.AudioFormat audioFormat) throws AudioFormatNotSupportedException- Specified by:
setAudioFormatin interfaceIAudioOutputStream- Throws:
AudioFormatNotSupportedException
-
isFinished
public boolean isFinished()
-
release
public void release()
-
-