- All Implemented Interfaces:
- Codec, Controls, PlugIn
public class RateConverter
extends AbstractCodec
Converts between different linear audio formats. Able to change signed/unsigned, endian-ness, bits per sample, sample rate, channels.
TODO: optimize.
TODO: improve quality of conversions. See for example http://www.fmjsoft.com/atquality.html (name fmjsoft is coincidental).
TODO: change stereo to mono by averaging, rather than by omission of 2nd channel.
TODO: handle data types besides byte arrays
This converter has so many formats that it causes a big slowdown in filter graph building, both for FMJ and JMF.
Note: com.sun.media.codec.audio.rc.RateCvrt appears to only do rate conversion, not other conversions.
Note: com.ibm.media.codec.audio.PCMToPCM appears to do all conversions besides rate conversions.
It could be that by dividing things this way, filter graph building is less complex.
- Author:
- Ken Larson