com.petersalomonsen.jjack.javasound
Class SourceJJackLine

java.lang.Object
  extended by com.petersalomonsen.jjack.javasound.JJackLine
      extended by com.petersalomonsen.jjack.javasound.SourceJJackLine
All Implemented Interfaces:
javax.sound.sampled.DataLine, javax.sound.sampled.Line, javax.sound.sampled.SourceDataLine

public class SourceJJackLine
extends JJackLine
implements javax.sound.sampled.SourceDataLine

JJack SourceDataLine implementation

Version:
0.3
Author:
Peter Johan Salomonsen

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.sound.sampled.DataLine
javax.sound.sampled.DataLine.Info
 
Field Summary
 
Fields inherited from class com.petersalomonsen.jjack.javasound.JJackLine
byteBuffer, converter, fifo, floatBuffer, format, info, mixer, open
 
Constructor Summary
SourceJJackLine(JJackMixer mixer)
           
 
Method Summary
 int available()
           
(package private)  boolean canReadFloat(int length)
           
 long getLongFramePosition()
           
(package private)  float[] readFloat(int length)
          Used by JJackMixer to read float values
 int write(byte[] b, int off, int len)
           
 
Methods inherited from class com.petersalomonsen.jjack.javasound.JJackLine
addLineListener, checkAndAllocateBuffers, close, drain, flush, getBufferSize, getControl, getControls, getFormat, getFramePosition, getLevel, getLineInfo, getMicrosecondPosition, isActive, isControlSupported, isOpen, isRunning, open, open, open, removeLineListener, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.sound.sampled.SourceDataLine
open, open
 
Methods inherited from interface javax.sound.sampled.DataLine
drain, flush, getBufferSize, getFormat, getFramePosition, getLevel, getMicrosecondPosition, isActive, isRunning, start, stop
 
Methods inherited from interface javax.sound.sampled.Line
addLineListener, close, getControl, getControls, getLineInfo, isControlSupported, isOpen, open, removeLineListener
 

Constructor Detail

SourceJJackLine

public SourceJJackLine(JJackMixer mixer)
Method Detail

write

public int write(byte[] b,
                 int off,
                 int len)
Specified by:
write in interface javax.sound.sampled.SourceDataLine

available

public int available()
Specified by:
available in interface javax.sound.sampled.DataLine
Specified by:
available in class JJackLine

getLongFramePosition

public long getLongFramePosition()
Specified by:
getLongFramePosition in interface javax.sound.sampled.DataLine
Specified by:
getLongFramePosition in class JJackLine

readFloat

float[] readFloat(int length)
Used by JJackMixer to read float values


canReadFloat

boolean canReadFloat(int length)