cnrg.itx.datax.devices
Class JMicrophoneSource

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--cnrg.itx.datax.devices.JMicrophoneSource

public class JMicrophoneSource
extends java.lang.Thread
implements Source


Field Summary
private static int BUFFER_SIZE
           
private  Channel channel
           
private  cnrg.itx.datax.devices.InputChannel mic
           
private  boolean running
          is the feeder thread running?
private  cnrg.itx.datax.devices.InputDevice soundIn
           
 
Fields inherited from class java.lang.Thread
contextClassLoader, daemon, eetop, group, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadQ, values
 
Constructor Summary
JMicrophoneSource(Channel ch)
           
 
Method Summary
 void close()
           
 PropertiesCollection getProperties()
          Returns a collection of properties supported.
 Stats getStatistics()
           
 boolean mute(boolean state)
           
 void run()
           
 void setPeerProperties(PropertiesCollection pc)
          Interface to set the given properties collection into the device.
 void setProperties(PropertiesCollection pc)
          Sets the given properties collection into the device (local);
 
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, exit, getContextClassLoader, getName, getPriority, getThreadGroup, init, interrupt, interrupt0, interrupted, isAlive, isDaemon, isInterrupted, isInterrupted, join, join, join, nextThreadNum, registerNatives, resume, resume0, setContextClassLoader, setDaemon, setName, setPriority, setPriority0, sleep, sleep, start, stop, stop, stop0, suspend, suspend0, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BUFFER_SIZE

private static int BUFFER_SIZE

channel

private Channel channel

soundIn

private cnrg.itx.datax.devices.InputDevice soundIn

mic

private cnrg.itx.datax.devices.InputChannel mic

running

private boolean running
is the feeder thread running?
Constructor Detail

JMicrophoneSource

public JMicrophoneSource(Channel ch)
                  throws DataException
Method Detail

mute

public boolean mute(boolean state)
Specified by:
mute in interface Source

close

public void close()
Specified by:
close in interface Source

getStatistics

public Stats getStatistics()

getProperties

public PropertiesCollection getProperties()
                                   throws DataException
Returns a collection of properties supported.

setProperties

public void setProperties(PropertiesCollection pc)
                   throws DataException
Sets the given properties collection into the device (local);

setPeerProperties

public void setPeerProperties(PropertiesCollection pc)
                       throws DataException
Interface to set the given properties collection into the device. WOrks under the assumption that this is the properties collection of the peer.

run

public void run()
Overrides:
run in class java.lang.Thread