JDK-7124501 : [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: Duplicate
  • OS: os_x
  • CPU: generic
  • Submitted: 2011-12-23
  • Updated: 2011-12-28
  • Resolved: 2011-12-23
Related Reports
Duplicate :  
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.