JDK-7033899 : SoundTestSuite: test050 fails on Ubuntu Linux
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.sound
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: linux_ubuntu
  • CPU: x86
  • Submitted: 2011-04-05
  • Updated: 2011-07-18
  • Resolved: 2011-07-18
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.
JDK 7
7 b142Fixed
Related Reports
Relates :  
Relates :  
Description
Test 050 fails:
Test Name: test050
Focus: Clip.setFramePosition()
Description:
Verify that the current location in the audio can be specified.
The File: Z:\PIT\SoundTestSuite\sound\src\..\data\Media\Clips\22050_HZ\ClipFile_17.au
AudioFormat: PCM_SIGNED 22050.0 Hz, 8 bit, mono, 1 bytes/frame, 
Frame Length: 110250
Event: Open event from line com.sun.media.sound.DirectAudioDevice$DirectClip@778b3fee
Event getFramePosition: 0
Event getLine: com.sun.media.sound.DirectAudioDevice$DirectClip@778b3fee
Event getType: 1460821906
Tried to set frame position to 0 but got back 22049
Tried to set frame position to 1102 but got back 23151
Tried to set frame position to 2204 but got back 24253
....
Tried to set frame position to 110200 but got back 132249
Event: Close event from line com.sun.media.sound.DirectAudioDevice$DirectClip@778b3fee
Event getFramePosition: 132249
Event getLine: com.sun.media.sound.DirectAudioDevice$DirectClip@778b3fee
Event getType: 829625140
Failed

Comments
EVALUATION Research shown that the troubles can be avoided preventing flushing when line has empty data buffer.
20-04-2011

EVALUATION This causes wrong available() and current pos results
20-04-2011

EVALUATION an issue with dmix plugin again After some activities PCM changes buffer size (makes it double size)
19-04-2011

EVALUATION The issue can be related with 6986718
07-04-2011