Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6261423

Dropouts in audio recordings

XMLWordPrintable

    • b53
    • generic, x86
    • generic, windows_xp

        FULL PRODUCT VERSION :
        1.5.0
        1.5.0_01-b08

        ADDITIONAL OS VERSION INFORMATION :
        Microsoft Windows XP [Version 5.1.2600]
        Windows 2000 SP4

        EXTRA RELEVANT SYSTEM CONFIGURATION :
        Tested audio cards (interfaces):
        SoundBlaster 64 AWE
        M-Audio MobilePre USB
        M-Audio FireWire 410

        A DESCRIPTION OF THE PROBLEM :
        The JavaSound DirectSound TargetDataLine sometimes drops some audio data.


        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        We used a slightly modified version of SimpleAudioRecorder.java from jsresources.org and
        recorded 50 audio files with 20 seconds length each. Audio format was: PCM_SIGNED 44.1 kHz 16bit stereo. We connected a sine wave generator with 377 Hz to the input of the audio interfaces.
        The dropouts are visible in the signal plot of the recordings and they produce hearable klicks.

          To automate the tests we used a script for the signal and speech analysis program Praat (www.praat.org). The script applys a high-pass filter with cut-off frequency 500 Hz, which mainly filters the recorded sine wave. Next it measuers the intensity of the whole file. Dropouts in the signal cause some energy in the upper frequncy bands, so the intensity of broken files is much higher. Tested platforms are Windows 2000 and XP and three different audio interfaces. With line.available() we checked for bufferoverruns, but the buffer was appr. filled 60 % at most.
        Using an own JavaSound mixer adapter for the ASIO interface the recordings are correct even with higher OS loads. So I think it is a bug in the DirectSound to javaSound code.


        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        We expected clear recordings.
        ACTUAL -
        Some audio files have dropouts.

        REPRODUCIBILITY :
        This bug can be reproduced occasionally.

        ---------- BEGIN SOURCE ----------
        SimpleAudioRecorder.java from www.jsresources.org
        ---------- END SOURCE ----------

        CUSTOMER SUBMITTED WORKAROUND :
        Use JRE 1.4.2 for audio recording.
        ###@###.### 2005-04-26 14:12:24 GMT

              amenkov Alex Menkov
              ndcosta Nelson Dcosta (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: