Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6832063
Votes 0
Synopsis OpenJDK fails to open the default ALSA device when PulseAudio is enabled
Category java:classes_sound
Reported Against
Release Fixed 7(b78), 6-open(b17) (Bug ID:2176360)
State 10-Fix Delivered, bug
Priority: 4-Low
Related Bugs
Submit Date 20-APR-2009
Description
description from bugs.openjdk.java.net (Omair Majid):

On Linux distributions with PulseAudio installed, snd_pcm_hw_params_any() can
return a positive value on success, not just 0. When OpenJDK tries to open the
ALSA 'default' device, it sees this positive return value and considers it an
error, moving on to using ALSA hardware devices directly. The ALSA
documentation isnt very clear about the return value, but the alsa examples use
'snd_pcm_hw_params_any() < 0' to check for error [1]. Other audio programs have
encountered the same issue [2]. The patch changes the check from 'ret != 0' to
'ret < 0' and sets ret = 0 so the code that follows isnt affected.

This bug affects both OpenJDK and OpenJDK6.
Posted Date : 2009-04-20 14:51:25.0
Work Around
N/A
Evaluation
valid request.
Should be fixed in openjdk6 & 7
Posted Date : 2009-04-20 14:53:42.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang