|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.InputStream
com.groovemanager.sampled.StereoToMonoStream
This class is used for simple conversion of a stereo AudioInputStream into
mono just by reading from itīs left channel. It is used for instance in
AudioManager.getMonoInputStream()
| Field Summary | |
|---|---|
(package private) int |
sampleSize
The sample size of the source streamīs format |
private javax.sound.sampled.AudioInputStream |
source
The stereo source stream to be converted |
private byte[] |
temp
Temporary Array |
| Constructor Summary | |
|---|---|
StereoToMonoStream(javax.sound.sampled.AudioInputStream source)
Construct a new StereoToMonoInputStream |
|
| Method Summary | |
|---|---|
int |
available()
|
void |
close()
|
void |
mark(int arg0)
|
boolean |
markSupported()
|
int |
read()
Donīt use this method! |
int |
read(byte[] b)
|
int |
read(byte[] b,
int off,
int len)
|
void |
reset()
|
long |
skip(long s)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
final int sampleSize
private final javax.sound.sampled.AudioInputStream source
private byte[] temp
| Constructor Detail |
|---|
public StereoToMonoStream(javax.sound.sampled.AudioInputStream source)
source - The source stream in stereo to be converted
java.lang.IllegalArgumentException - If the source stream is not stereo| Method Detail |
|---|
public int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionInputStream.available()
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.InputStreamjava.io.IOExceptionInputStream.close()public void mark(int arg0)
mark in class java.io.InputStreamInputStream.mark(int)public boolean markSupported()
markSupported in class java.io.InputStreamInputStream.markSupported()
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionInputStream.read()
public int read(byte[] b)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionInputStream.read(byte[])
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionInputStream.read(byte[], int, int)
public void reset()
throws java.io.IOException
reset in class java.io.InputStreamjava.io.IOExceptionInputStream.reset()
public long skip(long s)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOExceptionInputStream.skip(long)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||