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

Simultaneous playback and recording does not work, even when supported by HW

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P2 P2
    • None
    • 1.0
    • client-libs

      Date: Wed, 13 Jan 1999 14:19:14 +0000
      From: Jean-Michel Trivi <###@###.###>
      X-Accept-Language: en
      MIME-Version: 1.0
      To: Kara Kytle <Kara.Kytle@Eng>
      Subject: js0.8 : small error + question
      Content-Transfer-Encoding: 7bit

      First of all, I would like to thank you for your support in the
      javasound mailing list. It is really great to have messages from the
      people who work on this API.

      ...

      I am trying to implement an "audio loop" with JavaSound to get familiar
      with the API, test latency and full duplex : to output on the speakers
      the sound recorded by the microphone. I thought it would work by
      creating a PushAudioInput (captureChannel) and connecting it to a
      PushAudioOutput (playbackChannel) with the "setSink()" method.

      There is no problem when creating both channels.
      Then I set the format of the playbackChannel as the one from the
      captureChannel.
      Acquiring and starting the captureChannel runs fine but the "acquire()"
      method called by the playbackChannel throws this exception :

      Failed to start audio capture: javax.media.ResourceUnavailableException:
      Audio Device Unavailable

      Yet the system I am working on is full duplex (Ultra60) and a similar
      application runs in C. Indeed on Solaris, you can always open the audio
      device as read only and then, in the same program or in another, you can
      open it as write only. Could it be an error in JavaSound for Solaris as
      the audio device would be declared as "busy" if the "acquire()" method
      of a "AudioInControlDevice" or "AudioOutControlDevice" opens the audio
      device with both read & write rights ?

      To know more about my planned use of JavaSound, Warren Dale from the
      Java3D team wrote a paper about his 3D sound architecture and speaks
      about my work in paragraph 4.2.2 (sorry I dont't have the file that
      describes the project of my team with me today !)

      Best regards.
      --
       _____________________________________________________________
        Trivi Jean-Michel http://www-vis.imag.fr/
                     GRAVIR Lab - CLAVIS project - Grenoble (France)
        mailto:###@###.### http://www-vis.imag.fr/trivi
       _____________________________________________________________

            kkytlesunw Kara Kytle (Inactive)
            kkytlesunw Kara Kytle (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: