org.xiph.speex.player
Class Recorder
- ActionListener
JavaSound Recorder.
- Marc Gimpel, Wimba S.A. (mgimpel@horizonwimba.com)
BUILD , REVISION , STATE_BUFFERING , STATE_ERROR , STATE_INIT , STATE_PAUSED , STATE_PLAYING , STATE_STOPPED , VERSION , audioFile , audioFilename , audioLength , oldstate , pauseButton , playButton , playback , playerButtonPane , playerScrollPane , progressBar , state , stopButton , timer |
actionPerformed , buildButton , createButtonPanel , createGUI , createImageIcon , createScrollPanel , getAudioStream , getProgress , init , main , pauseIt , playIt , start , stop , stopIt |
CHANNELS_MONO
public static final String CHANNELS_MONO
Mono Audio (1 channel).
CHANNELS_STEREO
public static final String CHANNELS_STEREO
Stereo Audio (2 channels).
REVISION
public static final String REVISION
Revision Number
SAMPLERATE_11KHZ
public static final String SAMPLERATE_11KHZ
Audio sampled at 11 kHz.
SAMPLERATE_16KHZ
public static final String SAMPLERATE_16KHZ
Audio sampled at 16 kHz (wideband).
SAMPLERATE_22KHZ
public static final String SAMPLERATE_22KHZ
Audio sampled at 22 kHz (FM radio quality).
SAMPLERATE_32KHZ
public static final String SAMPLERATE_32KHZ
Audio sampled at 32 kHz (ultra-wideband).
SAMPLERATE_44KHZ
public static final String SAMPLERATE_44KHZ
Audio sampled at 44 kHz (CD quality).
SAMPLERATE_8KHZ
public static final String SAMPLERATE_8KHZ
Audio sampled at 8 kHz (telephone quality).
STATE_RECORDING
protected static final int STATE_RECORDING
Finite State Machine State: Recording
STATE_REC_PAUSED
protected static final int STATE_REC_PAUSED
Finite State Machine State: Recording Paused
audio
protected byte[] audio
recordButton
protected JButton recordButton
Record Button
Recorder
public Recorder(String file)
Build a Recorder.
actionPerformed
public void actionPerformed(ActionEvent e)
Process Actions when button are pressed.
Implemented from ActionListener interface.
- actionPerformed in interface Player
createButtonPanel
protected void createButtonPanel()
Create the ButtonPanel for the recorder.
The recorder button panel that should look something like this:
+--------------------------------+
| +------+ +----+ +-----+ +----+ |
| |record| |play| |pause| |stop| | Button Panel
| +------+ +----+ +-----+ +----+ |
+--------------------------------+
- createButtonPanel in interface Player
getAudioStream
protected InputStream getAudioStream()
throws IOException
Returns an InputSteam containing the Audio to playback.
- getAudioStream in interface Player
- an InputSteam containing the Audio to playback.
getProgress
protected int getProgress()
Return the progress of the playback.
- getProgress in interface Player
- the progress of the playback.
init
public void init()
Initialize the Player Component.
- init in interface Player
main
public static void main(String[] args)
Command Line entrance.
- main in interface Player
recordIt
public void recordIt()
Copyright © 1999-2004 Wimba S.A. All Rights Reserved.