Package ipsk.audio
Class VectorBufferRawAudioSource
- java.lang.Object
-
- ipsk.audio.BasicAudioSource
-
- ipsk.audio.VectorBufferRawAudioSource
-
- All Implemented Interfaces:
AudioSource
public class VectorBufferRawAudioSource extends BasicAudioSource implements AudioSource
- Author:
- K.Jaensch, klausj@phonetik.uni-muenchen.de
-
-
Field Summary
-
Fields inherited from interface ipsk.audio.AudioSource
DATA_FLAVOR
-
Fields inherited from class ipsk.audio.BasicAudioSource
frameLengthObj
-
-
Constructor Summary
Constructors Constructor Description VectorBufferRawAudioSource(VectorBuffer vectorBuffer, javax.sound.sampled.AudioFormat audioFormat)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.sound.sampled.AudioInputStream
getAudioInputStream()
Returns a new audio input stream.boolean
isRandomAccessible()
-
Methods inherited from interface ipsk.audio.AudioSource
getFormat, getFrameLength
-
Methods inherited from class ipsk.audio.BasicAudioSource
getFormat, getFrameLength, setAudioFormat, setFrameLength
-
-
-
-
Constructor Detail
-
VectorBufferRawAudioSource
public VectorBufferRawAudioSource(VectorBuffer vectorBuffer, javax.sound.sampled.AudioFormat audioFormat)
-
-
Method Detail
-
getAudioInputStream
public javax.sound.sampled.AudioInputStream getAudioInputStream() throws AudioSourceException
Description copied from interface:AudioSource
Returns a new audio input stream.- Specified by:
getAudioInputStream
in interfaceAudioSource
- Specified by:
getAudioInputStream
in classBasicAudioSource
- Returns:
- a new audio input stream
- Throws:
AudioSourceException
-
isRandomAccessible
public boolean isRandomAccessible()
- Overrides:
isRandomAccessible
in classBasicAudioSource
-
-