|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--xinca.components.ARecordThread
Audio recording thread.
Copyright (c) 2002 ICMC-USP.
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.
Field Summary |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
ARecordThread(xinca.components.XSound parent,
java.lang.String path)
Constructor. |
Method Summary | |
void |
controllerUpdate(javax.media.ControllerEvent ce)
Description of the Method |
void |
record(java.lang.String path)
Plays back the audio |
void |
run()
Runs the thread. |
void |
stopRecord()
Stops the record. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ARecordThread(xinca.components.XSound parent, java.lang.String path)
parent
- is the XSoundCap object that created this thread.path
- is the path where to write the temporary audio fileMethod Detail |
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void stopRecord()
public void record(java.lang.String path)
path
- is the path where to write the temporary audio filepublic void controllerUpdate(javax.media.ControllerEvent ce)
controllerUpdate
in interface javax.media.ControllerListener
ce
- Description of the Parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |