com.petersalomonsen.jjack.javasound

Class JJackMixer

public class JJackMixer extends JJackClient implements Mixer

A Javasound Mixer implementation that enables use of jack through this standard java interface..

Version: 0.3

Author: Peter Johan Salomonsen

Field Summary
AudioFormat[]audioFormatsIn
AudioFormat[]audioFormatsOut
Supported audio formats
static longserialVersionUID
VectorsourceLines
VectortargetLines
Constructor Summary
JJackMixer()
Method Summary
voidaddLineListener(LineListener listener)
voidclose()
voidfillAudioFormats(AudioFormat[] audioFormats)
Fill audioFormats array with available audio formats.
ControlgetControl(Type control)
Control[]getControls()
LinegetLine(Info info)
InfogetLineInfo()
intgetMaxLines(Info info)
InfogetMixerInfo()
Info[]getSourceLineInfo()
Info[]getSourceLineInfo(Info info)
Line[]getSourceLines()
Info[]getTargetLineInfo()
Info[]getTargetLineInfo(Info info)
Line[]getTargetLines()
booleanisControlSupported(Type control)
booleanisLineSupported(Info info)
booleanisOpen()
booleanisSynchronizationSupported(Line[] lines, boolean maintainSync)
voidopen()
voidprocess(JJackAudioEvent e)
voidregisterOpenLine(JJackLine line)
voidremoveLineListener(LineListener listener)
voidsynchronize(Line[] lines, boolean maintainSync)
voidunregisterLine(JJackLine line)
voidunsynchronize(Line[] lines)

Field Detail

audioFormatsIn

AudioFormat[] audioFormatsIn

audioFormatsOut

AudioFormat[] audioFormatsOut
Supported audio formats

serialVersionUID

private static final long serialVersionUID

sourceLines

Vector sourceLines

targetLines

Vector targetLines

Constructor Detail

JJackMixer

public JJackMixer()

Method Detail

addLineListener

public void addLineListener(LineListener listener)

close

public void close()

fillAudioFormats

private void fillAudioFormats(AudioFormat[] audioFormats)
Fill audioFormats array with available audio formats. We'll support 8,16,24 and 32 bit, big and little endian and lines up to "inputs/outputs" number of channels

getControl

public Control getControl(Type control)

getControls

public Control[] getControls()

getLine

public Line getLine(Info info)

getLineInfo

public Info getLineInfo()

getMaxLines

public int getMaxLines(Info info)

getMixerInfo

public Info getMixerInfo()

getSourceLineInfo

public Info[] getSourceLineInfo()

getSourceLineInfo

public Info[] getSourceLineInfo(Info info)

getSourceLines

public Line[] getSourceLines()

getTargetLineInfo

public Info[] getTargetLineInfo()

getTargetLineInfo

public Info[] getTargetLineInfo(Info info)

getTargetLines

public Line[] getTargetLines()

isControlSupported

public boolean isControlSupported(Type control)

isLineSupported

public boolean isLineSupported(Info info)

isOpen

public boolean isOpen()

isSynchronizationSupported

public boolean isSynchronizationSupported(Line[] lines, boolean maintainSync)

open

public void open()

process

public void process(JJackAudioEvent e)

UNKNOWN:

registerOpenLine

void registerOpenLine(JJackLine line)

removeLineListener

public void removeLineListener(LineListener listener)

synchronize

public void synchronize(Line[] lines, boolean maintainSync)

unregisterLine

void unregisterLine(JJackLine line)

unsynchronize

public void unsynchronize(Line[] lines)