sound.processors
Class IntProcessorTest
java.lang.Object
sound.processors.IntProcessorTest
public class IntProcessorTest
- extends java.lang.Object
Method Summary |
static byte[] |
get8BitAudioData(javax.sound.sampled.AudioFormat format,
short[] audioInts)
Input format type data in linear PCM style and encode it to
bytes. |
static short[] |
getSamples(byte[] inputData,
javax.sound.sampled.AudioFormat audioFormat)
|
static void |
main(java.lang.String[] args)
|
static void |
writeBytes(byte[] b,
javax.sound.sampled.SourceDataLine line,
int numBytesRead)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntProcessorTest
public IntProcessorTest()
main
public static void main(java.lang.String[] args)
throws javax.sound.sampled.LineUnavailableException
- Throws:
javax.sound.sampled.LineUnavailableException
writeBytes
public static void writeBytes(byte[] b,
javax.sound.sampled.SourceDataLine line,
int numBytesRead)
getSamples
public static short[] getSamples(byte[] inputData,
javax.sound.sampled.AudioFormat audioFormat)
get8BitAudioData
public static byte[] get8BitAudioData(javax.sound.sampled.AudioFormat format,
short[] audioInts)
- Input format type data in linear PCM style and encode it to
bytes.
- Parameters:
format
- audioInts
-
- Returns:
- audioData