|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jass.engine.Out jass.generators.AudioIn
public class AudioIn
Obtain buffers by reading audio input. To use native audio input use appropriate contructor. Mono input only.
Field Summary |
---|
Fields inherited from class jass.engine.Out |
---|
buf, bufferSize, bufOld, lock |
Constructor Summary | |
---|---|
AudioIn(float srate,
int bufferSize,
int bufferSizeJavaSound)
Constructor. |
|
AudioIn(float srate,
int bufferSize,
int numRtAudioBuffers,
SourcePlayer sp)
Constructor uses RtAudioFullduplex. |
|
AudioIn(float srate,
int bufferSize,
int bufferSizeJavaSound,
java.lang.String preferredMixer,
java.lang.String nativesource,
int numRtAudioBuffers)
Constructor. |
Method Summary | |
---|---|
void |
close()
Close resources If ASIO mode is running, the closing will be taken care of automatically. |
protected void |
computeBuffer()
Method for reading data into buf |
void |
takeASIOData(short[] myData)
This is where we will take the data from ASIO. |
Methods inherited from class jass.engine.Out |
---|
clearBuffer, copyToOld, getBuffer, getBuffer, getBufferSize, getTime, peekAtBuffer, resetTime, setBufferSize, setTime, setTimeAndNotify |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AudioIn(float srate, int bufferSize, int bufferSizeJavaSound)
srate
- Sampling rate in Hertz.bufferSize
- Buffer size of Out object.bufferSizeJavaSound
- Buffer size used by JavaSound. Set to 0 to get default.public AudioIn(float srate, int bufferSize, int bufferSizeJavaSound, java.lang.String preferredMixer, java.lang.String nativesource, int numRtAudioBuffers)
srate
- Sampling rate in Hertz.bufferSize
- Buffer size of Out object.bufferSizeJavaSound
- Buffer size used by JavaSound. Set to 0 to get default. Not used if using native input.preferredMixer
- mixer name for JavaSound, for example "Esd Mixer". Use anything to get default. Ignoted if using native inputnativesource
- "RtAudio""or "ASIO" or anything else to use JavaSoundnumRtAudioBuffers
- latency parameter for rtaudio 0 is lowest latency, ignored for JavaSound or ASIOpublic AudioIn(float srate, int bufferSize, int numRtAudioBuffers, SourcePlayer sp)
srate
- Sampling rate in Hertz.bufferSize
- Buffer size of Out object.numRtAudioBuffers
- latency parameter for rtaudio 0 is lowest latency, ignored for JavaSound or ASIOMethod Detail |
---|
public void takeASIOData(short[] myData)
protected void computeBuffer()
computeBuffer
in class Out
public void close()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |