com.petersalomonsen.jjack.javasound
Class TargetJJackLine

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

public class TargetJJackLine
extends JJackLine
implements javax.sound.sampled.TargetDataLine

JJack TargetDataLine 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
TargetJJackLine(JJackMixer mixer)
           
 
Method Summary
 int available()
           
(package private)  boolean canWriteFloat(int length)
           
(package private)  float[] getFloatBuffer(int length)
          Used by JJackMixer to get a buffer to write float values
 long getLongFramePosition()
           
 int read(byte[] b, int off, int len)
           
(package private)  void writeFloatBuffer()
          Used by JJackMixer to write the float buffer retrieved using getFloatBuffer()
 
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.TargetDataLine
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

TargetJJackLine

public TargetJJackLine(JJackMixer mixer)
Method Detail

read

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

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

getFloatBuffer

float[] getFloatBuffer(int length)
Used by JJackMixer to get a buffer to write float values


writeFloatBuffer

void writeFloatBuffer()
Used by JJackMixer to write the float buffer retrieved using getFloatBuffer()


canWriteFloat

boolean canWriteFloat(int length)