JDK-7124225 : [macosx] Input lines support only current sample rate
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.sound
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: os_x
  • CPU: generic
  • Submitted: 2011-12-23
  • Updated: 2012-09-25
  • Resolved: 2012-03-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7u4 b13Fixed
Related Reports
Duplicate :  
Relates :  
Description
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.

Comments
EVALUATION resampling should be implemented to support recording with any sample rate. A lot of applications request required sample rate without analyzing supported formats (on all other platforms resampling is implemented by native audio system)
23-12-2011