org.sakaiproject.tool.assessment.audio
Class AudioRecorderParams

java.lang.Object
  extended byorg.sakaiproject.tool.assessment.audio.AudioRecorderParams
All Implemented Interfaces:
Serializable

public class AudioRecorderParams
extends Object
implements Serializable

By default, we turn more things on than we would from an applet we support runnning as an application, too

Description:

Sakai Project Copyright (c) 2005

Author:
Ed Smiley
See Also:
Serialized Form

Field Summary
static int[] bitsAllowed
          8 or 16 bit
static String[] compressionAllowed
          compression algorithms btw using "u" for the greek letter "mu" perhaps we should be calling this "mu-law" and showing that letter in UI.
static int[] frequenciesAllowed
          sampling rates
 
Constructor Summary
AudioRecorderParams()
          Support runnning as an application.
AudioRecorderParams(Applet applet)
          From an applet we set all values that are specified in existing applet parameters, the names and properties correspond.
 
Method Summary
 int getBits()
           
 String getCompression()
           
 String getFileName()
           
 int getFrequency()
           
 int getMaxSeconds()
           
 int getRetriesAllowed()
           
 String getUrl()
           
 boolean isBigendian()
           
 boolean isEnableLoad()
           
 boolean isEnablePause()
           
 boolean isEnablePlay()
           
 boolean isEnableRecord()
           
 boolean isSaveAiff()
           
 boolean isSaveAu()
           
 boolean isSaveToFile()
           
 boolean isSaveToUrl()
           
 boolean isSaveWave()
           
 boolean isSigned()
           
 boolean isStereo()
           
 void setBigendian(boolean bigendian)
           
 void setBits(int bits)
           
 void setCompression(String compression)
           
 void setEnableLoad(boolean enableLoad)
           
 void setEnablePause(boolean enablePause)
           
 void setEnablePlay(boolean enablePlay)
           
 void setEnableRecord(boolean enableRecord)
           
 void setFileName(String fileName)
           
 void setFrequency(int frequency)
           
 void setMaxSeconds(int maxSeconds)
           
 void setRetriesAllowed(int retriesAllowed)
           
 void setSaveAiff(boolean saveAiff)
           
 void setSaveAu(boolean saveAu)
           
 void setSaveToFile(boolean saveToFile)
           
 void setSaveToUrl(boolean saveToUrl)
           
 void setSaveWave(boolean saveWave)
           
 void setSigned(boolean signed)
           
 void setStereo(boolean stereo)
           
 void setUrl(String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

compressionAllowed

public static final String[] compressionAllowed
compression algorithms btw using "u" for the greek letter "mu" perhaps we should be calling this "mu-law" and showing that letter in UI.


frequenciesAllowed

public static final int[] frequenciesAllowed
sampling rates


bitsAllowed

public static int[] bitsAllowed
8 or 16 bit

Constructor Detail

AudioRecorderParams

public AudioRecorderParams()
Support runnning as an application. We turn off url and trn off save to url. Thsi has to be explicitly turned on.


AudioRecorderParams

public AudioRecorderParams(Applet applet)

From an applet we set all values that are specified in existing applet parameters, the names and properties correspond.

Parameters:
applet - the applet using these settings
Method Detail

isBigendian

public boolean isBigendian()

getBits

public int getBits()

getCompression

public String getCompression()

isEnableLoad

public boolean isEnableLoad()

isEnablePause

public boolean isEnablePause()

isEnablePlay

public boolean isEnablePlay()

isEnableRecord

public boolean isEnableRecord()

getFileName

public String getFileName()

getFrequency

public int getFrequency()

getMaxSeconds

public int getMaxSeconds()

getRetriesAllowed

public int getRetriesAllowed()

isSaveAiff

public boolean isSaveAiff()

isSaveAu

public boolean isSaveAu()

isSaveToFile

public boolean isSaveToFile()

isSaveToUrl

public boolean isSaveToUrl()

isSaveWave

public boolean isSaveWave()

isSigned

public boolean isSigned()

isStereo

public boolean isStereo()

getUrl

public String getUrl()

setUrl

public void setUrl(String url)

setStereo

public void setStereo(boolean stereo)

setSigned

public void setSigned(boolean signed)

setSaveWave

public void setSaveWave(boolean saveWave)

setSaveToUrl

public void setSaveToUrl(boolean saveToUrl)

setSaveToFile

public void setSaveToFile(boolean saveToFile)

setSaveAu

public void setSaveAu(boolean saveAu)

setSaveAiff

public void setSaveAiff(boolean saveAiff)

setRetriesAllowed

public void setRetriesAllowed(int retriesAllowed)

setMaxSeconds

public void setMaxSeconds(int maxSeconds)

setFrequency

public void setFrequency(int frequency)

setFileName

public void setFileName(String fileName)

setEnableRecord

public void setEnableRecord(boolean enableRecord)

setEnablePlay

public void setEnablePlay(boolean enablePlay)

setEnablePause

public void setEnablePause(boolean enablePause)

setEnableLoad

public void setEnableLoad(boolean enableLoad)

setCompression

public void setCompression(String compression)

setBits

public void setBits(int bits)

setBigendian

public void setBigendian(boolean bigendian)