com.softsynth.jsyn
Class LineIn

java.lang.Object
  extended by java.util.Observable
      extended by com.softsynth.jsyn.SynthObject
          extended by com.softsynth.jsyn.SynthSound
              extended by com.softsynth.jsyn.SynthUnit
                  extended by 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

Field Summary
 SynthOutput output
          input - 2 parts, 0=Left, 1=Right.
 
Constructor Summary
LineIn()
           
LineIn(SynthContext synthContext)
          Create a SynthUnit that runs at Synth.RATE_AUDIO.
LineIn(SynthContext synthContext, int calculationRate)
           
 
Method Summary
 
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 com.softsynth.jsyn.SynthObject
delete, deleteAll, enableDeletionByGarbageCollector, enableTracking, getPeer, getSynthContext, isTrackingEnabled, toString, track
 
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
 

Field Detail

output

public SynthOutput output
input - 2 parts, 0=Left, 1=Right. Stereo signal from ADC.

Constructor Detail

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