JDK-4320445 : Simultaneous playback and recording not possible anymore with JavaSound
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.sound
  • Affected Version: 1.3.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_nt
  • CPU: x86
  • Submitted: 2000-03-10
  • Updated: 2003-09-27
  • Resolved: 2003-09-27
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 tigerFixed

Name: rlT66838			Date: 03/09/2000

java version "1.3.0rc1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc1-T)
Java HotSpot(TM) Client VM (build 1.3.0rc1-S, mixed mode)

When playing back using a SourceDataLine, I cannot start recording using a
TargetDataLine. My code works for both recording and playback, but not at the
same time.

The exception that occurs when requesting a TargetdataLine is that the format
does not match the format of an already open line. In my code only bigEndian of
the 2 lines is different. The same code (except JS0.99 API modifications)
worked well with JDK1.3beta for recording and playback simultaneously.
(Review ID: 102297) 

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

PUBLIC COMMENTS Simultaneous playback and recording not possible anymore with JavaSound

EVALUATION ###@###.### 2002-11-02 Java Sound in J2SE 1.4.1 and before requires the same playback format as for recording. To get best results, first open the recording TargetDataLine and then the SourceDataLine. This limitation should not exist with 1.4.2 anymore. Furthermore, the direct audio renderers that are planned for tiger should remove this problem. When using the ALSA mixer in 1.4.2, full duplex should be possible, too, unless the soundcard does not support full duplex. ###@###.### 2003-09-26 Fixed with availability of DirectAudio drivers on all platforms.