org.fraid.sound.utils
Class RecordSoundThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.fraid.sound.utils.RecordSoundThread
All Implemented Interfaces:
java.lang.Runnable

public class RecordSoundThread
extends java.lang.Thread


Nested Class Summary
static class RecordSoundThread.State
           
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
static int RECORD_BUFFER_SIZE
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
RecordSoundThread(RecordSoundController aController, int aListenBufferSize)
           
 
Method Summary
 void listen()
           
 void record()
           
 void requestAutoStop()
           
 void requestQuit()
           
 void requestStop()
           
 void resumeActivity()
           
 void run()
           
protected  void sendListenDataToController(byte[] aData)
           
protected  void sendRecordDataToController(byte[] aData)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RECORD_BUFFER_SIZE

public static final int RECORD_BUFFER_SIZE
See Also:
Constant Field Values
Constructor Detail

RecordSoundThread

public RecordSoundThread(RecordSoundController aController,
                         int aListenBufferSize)
Method Detail

requestStop

public void requestStop()

requestAutoStop

public void requestAutoStop()

requestQuit

public void requestQuit()

record

public void record()

listen

public void listen()

resumeActivity

public void resumeActivity()

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

sendRecordDataToController

protected void sendRecordDataToController(byte[] aData)

sendListenDataToController

protected void sendListenDataToController(byte[] aData)


Fraid (system and language). (C) 2003-2007 Ivaylo Iliev
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.