jAudioFeatureExtractor.jAudioTools
クラス AudioMethodsRecording
java.lang.Object
jAudioFeatureExtractor.jAudioTools.AudioMethodsRecording
public class AudioMethodsRecording
- extends java.lang.Object
A holder class for static methods and internal classes relating to recording
audio.
- 作成者:
- Cory McKay
クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AudioMethodsRecording
public AudioMethodsRecording()
recordByteArrayOutputStream
public static AudioMethodsRecording.RecordThread recordByteArrayOutputStream(javax.sound.sampled.TargetDataLine target_data_line)
throws java.lang.Exception
- Records the samples coming in on the given
TargetDataLine
to
a ByteArrayOutputStream
. Returns the thread that can be stopped
and from which the samples can be extracted. Useful for real-time recording.
- パラメータ:
target_data_line
- Where the samples are being recorded from.
- 戻り値:
- The thread that performs the recording.
- 例外:
java.lang.Exception
- Throws an exception if the parameter is null.
recordToFile
public static AudioMethodsRecording.RecordToFileThread recordToFile(javax.sound.sampled.TargetDataLine target_data_line,
java.io.File file_to_save_to,
javax.sound.sampled.AudioFileFormat.Type file_type)
throws java.lang.Exception
- Records the samples coming in on the given
TargetDataLine
to
the given file. Returns the thread that can be stopped when recording is complete.
Useful for real-time recording.
- パラメータ:
target_data_line
- The source of the audio to be recorded.file_to_save_to
- The file to save the audio to.file_type
- The type of audio file to save to.
- 戻り値:
- The thread that performs the recording.
- 例外:
java.lang.Exception
- Throws an exception if the target_data_line parameter
is null or if the given file cannot be written to.