Package ipsk.audio
Class ByteArrayAudioSource
- java.lang.Object
-
- ipsk.audio.BasicAudioSource
-
- ipsk.audio.ByteArrayAudioSource
-
- All Implemented Interfaces:
AudioSource
public class ByteArrayAudioSource extends BasicAudioSource implements AudioSource
Audio source from byte array.- 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
audioFormat, frameLengthObj
-
-
Constructor Summary
Constructors Constructor Description ByteArrayAudioSource(byte[] byteArray)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.sound.sampled.AudioInputStream
getAudioInputStream()
Returns a new audio input stream.-
Methods inherited from interface ipsk.audio.AudioSource
getFormat, getFrameLength
-
Methods inherited from class ipsk.audio.BasicAudioSource
getFormat, getFrameLength, isRandomAccessible, setAudioFormat, setFrameLength
-
-
-
-
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
-
-