JDK-4504642 : Implement Javasound "Ports"
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.sound
  • Affected Version: 2.1
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2001-09-19
  • Updated: 2002-03-13
  • Resolved: 2002-03-13
Related Reports
Duplicate :  
Description

Name: bsT130419			Date: 09/19/2001


java version "1.4.0-beta2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta2-b77)
Java HotSpot(TM) Client VM (build 1.4.0-beta2-b77, mixed mode)

Please implement "Ports" as defined in the Javasound api. They are not currently implemented. Also, I may be missing something, but from my understanding of the Javasound SPI plugin interface (javax.sound.sampled.spi), I would have to write an entire Mixer implmentation in order to add a plugin "Ports" implementation. This seems like a lot of redundant work just to provide control over Ports.

In various discussion forums it has been mentioned that Ports provide features that are already provided by the native OS, so "why reinvent these in Javasound". I believe that having to write native JNI code for every OS on which  you wish to use "Ports" totally defeats the goal of WORA, and in some cases even prohibits the use of Java for building certain applications.

I believe providing a real Ports implementation would greatly enhance the capability and portability of JMF (pun intended ;).

I'm making this enhancement request in response to the closed Bug# 4384401, which states that the lack of a Port implementation is going to be "fixed" by adding a note to the API docs that "Ports are not implemented". I consider the features provided by Ports to be critical and do not wish to see an implementation mistakenly delayed due to a percieved lack of demand for said features.

Thanks for listening.
(Review ID: 132159) 
======================================================================


###@###.### 2002-03-13
	The last paragraph does not apply. The referred bug #4384401 is a doc bug, i.e. a bug in the Java Sound Guide. It is not about the implementation.

Comments
WORK AROUND Name: bsT130419 Date: 09/19/2001 Write JNI code for every platform on which you wish to use Javasound Ports. (Not really a practical workaround at all.) ======================================================================
11-06-2004

EVALUATION ###@###.### 2002-03-13 Switched from jmf/api to java/classes_sound. Florian, please evaluate and close or commit to fix for a future J2SE release. Thanks... ###@###.### 2002-03-13 Duplicate of 4558938.
13-03-2002