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: 5011285
Votes 0
Synopsis JavaSoundDemo playback loads file (au,wav) fails to play - "reset not supported"
Category java:classes_sound
Reported Against 1.4.2
Release Fixed
State 11-Closed, duplicate of 4948663, bug
Priority: 4-Low
Related Bugs 4948663
Submit Date 10-MAR-2004
Description




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) 
======================================================================
Work Around
N/A
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.
  xxxxx@xxxxx   2004-03-10
Comments
  
  Include a link with my name & email   

Submitted On 03-MAY-2006
Hello,

This message helps.

I was wondering what workaround did you use 'cos I need to one to get my applet to work.

Let me explain. I have modified the createAudioInputStream to read a URL instead of a file. The graph was plotted correctly but when I clicked Play, I got the reset error.

I compiled the code in java version "1.4.2_09" and the applet is running in Java Plug-in 1.5.0_06.

Thanks.

Daisy (daisyf@stanford.edu)

*****open applet=http://sakai-l.stanford.edu:8080/samigo/servlet/ShowMedia?mediaId=107
*****createAudioInpuStream= javax.sound.sampled.AudioInputStream@18bbf55
*** duration= 3.562
*** calling samplingGraph.createWaveForm
Unable to reset the streamjava.io.IOException: Resetting to invalid mark



PLEASE NOTE: JDK6 is formerly known as Project Mustang