United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 7124225 [macosx] Input lines support only current sample rate
7124225 : [macosx] Input lines support only current sample rate

Details
Type:
Bug
Submit Date:
2011-12-23
Status:
Closed
Updated Date:
2012-09-25
Project Name:
JDK
Resolved Date:
2012-03-23
Component:
client-libs
OS:
os_x
Sub-Component:
javax.sound
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
7u4

Related Reports
Duplicate:
Relates:
Relates:

Sub Tasks

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)
                                     
2011-12-23



Hardware and Software, Engineered to Work Together