org.fraid.sound.sampled.functions
Class recordSound

java.lang.Object
  extended by org.fraid.function.ComplexFunction
      extended by org.fraid.function.GeneratorFunction
          extended by org.fraid.sound.sampled.functions.recordSound
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.event.ChangeListener

public class recordSound
extends GeneratorFunction

See Also:
Serialized Form

Field Summary
protected  RecordSoundController mController
           
protected  int mListenBufferSize
           
protected  Samples mRecordedSamples
           
protected  int mSamplingFrequency
           
 
Fields inherited from class org.fraid.function.GeneratorFunction
mArgs, mRegisteredFunction
 
Fields inherited from class org.fraid.function.ComplexFunction
mName, mNumberOfArguments
 
Constructor Summary
recordSound()
           
 
Method Summary
 DefinedFunction generate(Complex[] args)
           
 void postProcess()
           
protected  void setParameters()
           
 void setSamples(Samples aSamples)
           
 void stateChanged(javax.swing.event.ChangeEvent aEvent)
           
 
Methods inherited from class org.fraid.function.GeneratorFunction
clone, detouchFromListeners, getDependancies, getRegisteredFunction, invoke, processAndAttach, regenerateRegisteredFunction, setRegisteredFunction, toString
 
Methods inherited from class org.fraid.function.ComplexFunction
exec, getDependancies, getName, getNumberOfArguments, getSignature, setName, setNumberOfArguments
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mController

protected RecordSoundController mController

mRecordedSamples

protected Samples mRecordedSamples

mSamplingFrequency

protected int mSamplingFrequency

mListenBufferSize

protected int mListenBufferSize
Constructor Detail

recordSound

public recordSound()
Method Detail

generate

public DefinedFunction generate(Complex[] args)
                         throws ComplexFunctionException
Specified by:
generate in class GeneratorFunction
Throws:
ComplexFunctionException

postProcess

public void postProcess()
                 throws ComplexFunctionException
Overrides:
postProcess in class GeneratorFunction
Throws:
ComplexFunctionException

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent aEvent)
Specified by:
stateChanged in interface javax.swing.event.ChangeListener
Overrides:
stateChanged in class GeneratorFunction

setParameters

protected void setParameters()
                      throws ComplexFunctionException
Throws:
ComplexFunctionException

setSamples

public void setSamples(Samples aSamples)


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.