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: 4558938
Votes 56
Synopsis RFE: Implement Ports
Category java:classes_sound
Reported Against 2.1 , tiger , hopper , merlin
Release Fixed 1.4.2(mantis)
State 10-Fix Delivered, Verified, request for enhancement
Priority: 3-Medium
Related Bugs 4366723 , 4384401 , 4504642 , 4643041 , 4782900
Submit Date 07-DEC-2001
Description
RFE: Implement Ports

It is impossible to get instances of Port in javax.sound.sampled.*

======================================================================

 xxxxx@xxxxx  2002-03-29
Sound Test: test013 & test014 failing in Hopper build 06 on all platforms. Shell script details are below. 

#!/bin/ksh

PATH=/net/sqesvr.sfbay/export/st1/jdk141/beta/b06/solsparc/bin:
JAVAC=/net/sqesvr.sfbay/export/st1/jdk141/beta/b06/solsparc/bin/javac
CLASSPATH=/net/sqesvr.sfbay/export/st1/sound/hopper/sound_tonga/testrun/SunOS-5.9-grus-jdk141betab06-03.29-09.42-ALL/smitha.Solaris.sparc/test013:/net/sqesvr.sfbay/export/st1/Alan/sound/tonga/classes:/net/sqesvr.sfbay/export/st1/sound/hopper/sound_tonga/testbase/classes
DISPLAY=grus:0.0
JAVA=/net/sqesvr.sfbay/export/st1/jdk141/beta/b06/solsparc/bin/java

while [ $# -gt 0 ];
do
  if [ $1 = "-jdk" ]; then
	shift 1
	PATH=${1}/bin:${PATH}
	shift 1
  else
	if [ $1 = "-d" ]; then
	  shift 1
	  if [ $# -gt 0  ]; then
		DISPLAY=$1
		shift 1
	  else
		DISPLAY=:0.0
	  fi
	fi
  fi
done

export PATH
export JAVAC
export CLASSPATH
export DISPLAY
export JAVA
/net/sqesvr.sfbay/export/st1/jdk141/beta/b06/solsparc/bin/javac -d /net/sqesvr.sfbay/export/st1/sound/hopper/sound_tonga/testrun/SunOS-5.9-grus-jdk141betab06-03.29-09.42-ALL/smitha.Solaris.sparc/test013/ /net/sqesvr.sfbay/export/st1/sound/hopper/sound_tonga/testrun/SunOS-5.9-grus-jdk141betab06-03.29-09.42-ALL/smitha.Solaris.sparc/test013/*.java
##Exit status of Java compilation=0


#Note: /net/sqesvr.sfbay/export/st1/sound/hopper/sound_tonga/testbase/classes/TestPrefs.java uses or overrides a deprecated API.
#Note: Recompile with -deprecation for details.

PATH=/net/sqesvr.sfbay/export/st1/jdk141/beta/b06/solsparc/bin:
JAVAC=/net/sqesvr.sfbay/export/st1/jdk141/beta/b06/solsparc/bin/javac
CLASSPATH=/net/sqesvr.sfbay/export/st1/sound/hopper/sound_tonga/testrun/SunOS-5.9-grus-jdk141betab06-03.29-09.42-ALL/smitha.Solaris.sparc/test013:/net/sqesvr.sfbay/export/st1/Alan/sound/tonga/classes:/net/sqesvr.sfbay/export/st1/sound/hopper/sound_tonga/testbase/classes
DISPLAY=grus:0.0
JAVA=/net/sqesvr.sfbay/export/st1/jdk141/beta/b06/solsparc/bin/java

while [ $# -gt 0 ];
do
  if [ $1 = "-jdk" ]; then
	shift 1
	PATH=${1}/bin:${PATH}
	shift 1
  else
	if [ $1 = "-d" ]; then
	  shift 1
	  if [ $# -gt 0  ]; then
		DISPLAY=$1
		shift 1
	  else
		DISPLAY=:0.0
	  fi
	fi
  fi
done

export PATH
export JAVAC
export CLASSPATH
export DISPLAY
export JAVA
/net/sqesvr.sfbay/export/st1/jdk141/beta/b06/solsparc/bin/java -Ddata.dir=/net/sqesvr.sfbay/export/st1/sound/hopper/sound_tonga/testbase test013
##Exit status of execution step=1
##!checkExitCode

#
#Port.Info.MICROPHONE: Not Supported, see BugID 4384401
#Port.Info.LINE_IN: Not Supported, see BugID 4384401
#Port.Info.COMPACT_DISC: Not Supported, see BugID 4384401
#Port.Info.SPEAKER: Not Supported, see BugID 4384401
#Port.Info.HEADPHONE: Not Supported, see BugID 4384401
#Port.Info.LINE_OUT: Not Supported, see BugID 4384401

======================================================================
Work Around
N/A
Evaluation
 xxxxx@xxxxx  2002-02-26
	Missing in reference implementation.


 xxxxx@xxxxx  2002-11-05
	Regarding the JDC comments:
1) A bug appears closed/fixed if it is internally fixed. The fix will be available with the next public release of Java.
2) Recording from line in or any  xxxxx  port is well possible in Java Sound even without implemented ports. The only difference is that you cannot choose the port you are recording from - Java uses the one selected with a native program like Windows Mixer, Solaris audiocontrol, Linux aumix.
Comments
  
  Include a link with my name & email   

Submitted On 15-MAR-2002
roland-m
Implementation of Port and 24-bit, 96 kHz
and 192 kHz sound standard is very important.


Submitted On 15-APR-2002
bhamail
Ports are a must have. The lack of ports has already helped to kill one major javasound project I was working on. Trying to write and debug our own ports implementation was taking/costing way too much. The project didn't live long enough to worry about multi-platform issues. We really need a java implementation of Ports to build usable javasound apps.


Submitted On 29-APR-2002
on_da_decks
This should be a no brainer.  Please implement Port asap--
Visual C++ is no fun to code!


Submitted On 17-MAY-2002
thomas_nlv21
Ports are needed to build even simple applications working 
with sound! 


Submitted On 25-JUN-2002
KoenTanghe
Port not implemented: very fundamental thing missing !
Please implement this !


Submitted On 19-AUG-2002
mamicha
Ports are a must.  Very basic functionality to not have.


Submitted On 20-AUG-2002
JMHBOS
without ports the simple soundfunctionality of Applet is better 
than sound.sampled. 


Submitted On 23-AUG-2002
seniorc
This is really annoying and such a gaping hole in the API!!!

I want to write a Java sound application and ports are a
fundamental part of the sound API.

In the grand scheme of things there cannot be much effort
invovled.


Submitted On 17-SEP-2002
sarapci
Javasound is nothing without sound ports implented !!!!


Submitted On 26-SEP-2002
gonorovs
I need it


Submitted On 04-OCT-2002
chiefdaddy
I'd like to use javasound to record from line-in


Submitted On 15-OCT-2002
miked187
like trying to drive a car without wheels, trying to work with 
audio without having access to ports is pretty futile.

please make it so


Submitted On 04-NOV-2002
bgavagni
How can this possibly be considered CLOSED, FIXED!


Submitted On 06-NOV-2002
bhamail
The required use of Windows Mixer, Solaris audiocontrol, or Limux aumix is NOT a substitute for implementing Ports in Java because no commercial application can get away with asking  the User to switch to these native programs to select recording inputs (or playback outputs). This approach is like the "bad old days" where some applications could only print to the default printer in Windows. Even in the old situation, apps could at least typically switch the default printer for you from within the app (with the nasty side effect that all other apps that printed using the default printer would be affected by the change.) I realize that "it is possible" to change the record input using these apps, but it is not at all practical or professional.


Submitted On 07-NOV-2002
fgignoux
Trying to buid signal processing ( oscillo + fourier + filters).
Need to select my input & my output ! , How ?
Also seems that there is tricky things ( links) when trying to 
get Target & Source Lines at differetn formats.


Submitted On 13-DEC-2002
Defrector
Hopefully hi-fi (96khz+, 24bit+) support will come with the
bugfix, as 44.4k@16 is going to get very very old very very
quickly in the future.

As for this bugfix, it would seem that the need is more
immediate than being que'ed on the next version as it is
critical for advanced audio use.



PLEASE NOTE: JDK6 is formerly known as Project Mustang