JDK-5011285 : JavaSoundDemo playback loads file (au,wav) fails to play - "reset not supported"
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.sound
  • Affected Version: 1.4.2
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_9
  • CPU: sparc
  • Submitted: 2004-03-10
  • Updated: 2004-03-11
  • Resolved: 2004-03-11
Related Reports
Duplicate :  
Description

Name: rmT116609			Date: 03/10/2004


FULL PRODUCT VERSION :
java version "1.4.2_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_02-b03)
Java HotSpot(TM) Client VM (build 1.4.2_02-b03, mixed mode)

java version "1.5.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b32c)
Java HotSpot(TM) Client VM (build 1.5.0-beta-b32c, mixed mode)


ADDITIONAL OS VERSION INFORMATION :
SunOS macie 5.9 Generic_112233-11 sun4u sparc SUNW,Ultra-2
Windows XP

A DESCRIPTION OF THE PROBLEM :
JavaSoundDemo does not work correctly, will not load and play included demo files in the Capture/Playback tab when running as an application (applet not tested).



STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Download JavaSoundDemo.zip from Sun
80634 Jan 31  2000 JavaSoundDemo.jar
JavaSound.java   1.15    00/01/31

(start demo, click on "Capture/ Playback" , and use load to select
file included in the zip, from the audio subdirectory, spacemusic.au
hit play, and get:

Line matching interface SourceDataLine supporting format ULAW, 8000.0 Hz, 8 bit, mono, audio data not supported.

Repeat process, load 1-welcome.wav and get

Unable to reset the stream
java.io.IOException: mark/reset not supported

note: Jukebox tab loads the same files with no problems, and
Playback can (sometimes) load a different au file and play it back


EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Expected to load and play back files included with demo
ACTUAL -
Got errors shown above and below, did not play the files.

ERROR MESSAGES/STACK TRACES THAT OCCUR :
au file error message

Line matching interface SourceDataLine supporting format ULAW, 8000.0 Hz, 8 bit, mono, audio data not supported.

wav file error message

Unable to reset the stream
java.io.IOException: mark/reset not supported

REPRODUCIBILITY :
This bug can be reproduced always.

(Incident Review ID: 238014) 
======================================================================

Comments
PUBLIC COMMENTS Fixed for tiger (1.5.0)
10-06-2004

EVALUATION The Capture/Playback app only uses what the soundcard provides natively. If ulaw isn't supported, then it won't play it back. That's not a bug. The "reset not supported" is fixed for tiger. Therefore this bug is closed as a duplicate of 4948663. Since there is a workaround for the bug (and using audiostream.reset() isn't recommended anyway), it will not be backported for 1.4.2. ###@###.### 2004-03-10
10-03-2004