JDK-5013897 : Linux: Only maximum bits and channels in ALSA devices
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.sound
  • Affected Version: 5.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: x86
  • Submitted: 2004-03-16
  • Updated: 2004-03-19
  • Resolved: 2004-03-19
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.
5.0 b44Fixed
Related Reports
Relates :  
Name: fb126949			Date: 03/15/2004

Some ALSA soundcard drivers only report the device's maximum capability. For example, my Delta soundcard with 10 channels and up to 32-bit sample size reports for the hw: device:

So in Java Sound, such a SourceDataLine will not report mono or stereo, or 8 or 16 bit capability. Even if the hw: device is really not able to be opened in, say, stereo mode, the plughw: device can. Java Sound's lines always open the plughw: device, so it is safe to assume that if hw: supports 10 channels, the plughw: device also supports any number of channels below that.

Java Sound should acknowledge the plughw: capabilities and report lower quality formats.


CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger-beta2 FIXED IN: tiger-beta2 INTEGRATED IN: tiger-b44 tiger-beta2

PUBLIC COMMENTS Fixed in build 44, tiger beta 2.

EVALUATION Fixed by: 1) always setting minChannels to 1, therefore the SourceDataLines always report formats for 1..maxChannels 2) always add bit depths in the range of 8, 16, 20, 24/3, 24/4 up to the maximum supported bit depth ###@###.### 2004-03-15