com.tuneology.avm.recorder
Class NativeRecorder
java.lang.Object
|
+--com.tuneology.avm.recorder.Recorder
|
+--com.tuneology.avm.recorder.NativeRecorder
- All Implemented Interfaces:
- AudioRecorder, MediaRecorder
- public class NativeRecorder
- extends Recorder
- implements AudioRecorder
This class represents a digital audio recorder, usually on a sound card.
- Version:
- $Id: NativeRecorder.java,v 1.4 2003/06/07 15:31:41 xnarf Exp $
- Author:
- Fran Taylor
Fields inherited from class com.tuneology.avm.recorder.Recorder |
dev |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NativeRecorder
public NativeRecorder(java.lang.String d)
throws java.io.IOException
- Throws:
java.io.IOException
-
getDevices
public static java.lang.String[] getDevices()
setDataFormat
public void setDataFormat(int fmt)
throws java.io.IOException
- Specified by:
setDataFormat
in interface AudioRecorder
- Throws:
java.io.IOException
-
getDataFormat
public int getDataFormat()
- Specified by:
getDataFormat
in interface AudioRecorder
setStreamFormat
public void setStreamFormat(int fmt)
throws java.io.IOException
- Specified by:
setStreamFormat
in interface AudioRecorder
- Throws:
java.io.IOException
-
getStreamFormat
public int getStreamFormat()
- Specified by:
getStreamFormat
in interface AudioRecorder
setRate
public void setRate(int r)
throws java.io.IOException
- Specified by:
setRate
in interface AudioRecorder
- Throws:
java.io.IOException
-
getRate
public int getRate()
- Specified by:
getRate
in interface AudioRecorder
setChannels
public void setChannels(int c)
throws java.io.IOException
- Specified by:
setChannels
in interface AudioRecorder
- Throws:
java.io.IOException
-
getChannels
public int getChannels()
- Specified by:
getChannels
in interface AudioRecorder
record
public void record(MediaData md,
long offset,
int msecs)
throws java.io.IOException
- Specified by:
record
in interface MediaRecorder
- Throws:
java.io.IOException
-
getVersionString
public static java.lang.String getVersionString()
- Returns the version string for the underlying library, or blank if none.
- Returns:
- the version string for the underlying library, or blank if none.
stop
public void stop()
throws java.io.IOException
- Specified by:
stop
in interface MediaRecorder
- Throws:
java.io.IOException
-
close
public void close()
throws java.io.IOException
- Specified by:
close
in interface MediaRecorder
- Throws:
java.io.IOException
-
getName
public java.lang.String getName()
- Specified by:
getName
in interface MediaRecorder
touch
public static void touch()
getDescription
public static java.lang.String getDescription()