http://java.net/jira/browse/MACOSX_PORT-750 submitted 2011/11/23 by Alex Menkov
Input lines (TargetDataLine) support only "current" device sample rate.
The behavior comply the spec, but other platforms don't have such restrictions and most of the developers open TargetDataLine without supported AudioFormat analysis.
Need to research if CoreAudio support resampling.
Note: current audio format should be used as "default" - see Line.open() description:
For DataLine's, if the DataLine.Info object which was used to retrieve the line, specifies at least one fully qualified audio format, the last one will be used as the default format.