Converting raw data (headerless) filesPurpose. Converts a file with raw audio data without header (input file) to an audio file (outputfile). Since the format of the input data cannot be derived from the input file, it has to be specified on the command line. Usage. java RawAudioDataConverter -h java RawAudioDataConverter -l java RawAudioDataConverter [ [[-s] | [-u]] ] [[-L] | [-B]] {-b sample_size_in_bits } {-c channels } {-r sample_rate } {-t target_type } { input_file } { output_file } Parameters.
Bugs, limitations. This program can only process PCM data. Trying to store big-endian data in a wav file with the JDK 1.4.2 results in a file with only the header. Presumably, this is a bug in the JDK. Source code. RawAudioDataConverter.java, AudioCommon.java, gnu.getopt.Getopt | |