Opened 9 years ago

Closed 9 years ago

#67 closed defect (fixed)

No sound

Reported by: yoda Owned by:
Priority: major Milestone: RC
Component: general Version: 1.6.0-b19 Beta 2
Severity: Keywords:
Cc:

Description

Sound doesn't seem to be working from any apps.

Change History (3)

comment:1 Changed 9 years ago by dmik

After a number of Odin and JDK fixes, sound works now.

I see one issue in the java sound demo application: tracking the play position within the clip doesn't work well. I will look at it.

comment:2 Changed 9 years ago by dmik

This demo application (that was written for Java 1.3 and never updated by Sun since then) uses the buffer size of the data line to calculate the position within the played file. This seems no longer work in JDK 1.5 and above (checked on Linux too) because the strategy of calculating the resulting buffer size has changed so that the value requested by the program is not honoured well enough any more (in particular, see source:/branches/vendor/oracle/openjdk6/b19/jdk/src/windows/native/com/sun/media/sound/PLATFORM_API_WinOS_DirectSound.cpp#L791).

It really took time to find that out but this means that the demo application is just too outdated. Sounds in other applications (Jeti/2, freecol) work well.

comment:3 Changed 9 years ago by dmik

  • Resolution set to fixed
  • Status changed from new to closed

I also found that the jitter correction thread used in the software synthesizer by default introduces sound clips when you play midi notes using the mouse and the reverb effect is on in the Java sound demo application. When the jitter correction is disabled, all is fine. In r256, I experimentally disabled the jitter by default on OS/2 and we'll see how it performs in other applications.

For now, this task is considered to be done.

Note: See TracTickets for help on using tickets.