com.softsynth.jsyn
Class LineIn
java.lang.Object
java.util.Observable
com.softsynth.jsyn.SynthObject
com.softsynth.jsyn.SynthSound
com.softsynth.jsyn.SynthUnit
com.softsynth.jsyn.LineIn
public class LineIn
- extends SynthUnit
LineIn unit.
Outputs stereo signal from audio line in or microphone.
To enable audio input, the flag Synth.FLAG_ENABLE_INPUT must be passed to
Synth.start() or Synth.startEngine().
If your computer does not support "full duplex"
operation, then it cannot record and playback simultaneously. In that case,
you must also specify Synth.FLAG_DISABLE_OUTPUT to allow "half duplex" operation.
Many older PC cards such SoundBlaster AWE32 and AEW64 are only half duplex.
Most of the newer PCI bus soundcards, such as SoundBlaster Live, are full duplex.
- Version:
- JSyn Version 0014
- Author:
- (C) 1997 Phil Burk, SoftSynth.com, All Rights Reserved
- See Also:
Synth
,
LineOut
,
ChannelIn
Methods inherited from class com.softsynth.jsyn.SynthSound |
addPort, addPort, findNamedPort, getName, getNumPorts, getPortAt, getPriority, setPriority, setStage, setStage, start, start, stop, stop |
Methods inherited from class java.util.Observable |
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
output
public SynthOutput output
- input - 2 parts, 0=Left, 1=Right.
Stereo signal from ADC.
LineIn
public LineIn(SynthContext synthContext,
int calculationRate)
throws SynthException
- Throws:
SynthException
LineIn
public LineIn(SynthContext synthContext)
throws SynthException
- Create a SynthUnit that runs at Synth.RATE_AUDIO.
- Throws:
SynthException
- If resource allocation fails.
LineIn
public LineIn()
throws SynthException
- Throws:
SynthException