Java™ Platform
Standard Ed. 8

Uses of Class
javax.sound.sampled.LineUnavailableException

  • Packages that use LineUnavailableException 
    Package Description
    javax.sound.sampled
    Provides interfaces and classes for capture, processing, and playback of sampled audio data.
    • Uses of LineUnavailableException in javax.sound.sampled

      Methods in javax.sound.sampled that throw LineUnavailableException 
      Modifier and Type Method and Description
      static Clip AudioSystem.getClip()
      Obtains a clip that can be used for playing back an audio file or an audio stream.
      static Clip AudioSystem.getClip(Mixer.Info mixerInfo)
      Obtains a clip from the specified mixer that can be used for playing back an audio file or an audio stream.
      static Line AudioSystem.getLine(Line.Info info)
      Obtains a line that matches the description in the specified Line.Info object.
      Line Mixer.getLine(Line.Info info)
      Obtains a line that is available for use and that matches the description in the specified Line.Info object.
      static SourceDataLine AudioSystem.getSourceDataLine(AudioFormat format)
      Obtains a source data line that can be used for playing back audio data in the format specified by the AudioFormat object.
      static SourceDataLine AudioSystem.getSourceDataLine(AudioFormat format, Mixer.Info mixerinfo)
      Obtains a source data line that can be used for playing back audio data in the format specified by the AudioFormat object, provided by the mixer specified by the Mixer.Info object.
      static TargetDataLine AudioSystem.getTargetDataLine(AudioFormat format)
      Obtains a target data line that can be used for recording audio data in the format specified by the AudioFormat object.
      static TargetDataLine AudioSystem.getTargetDataLine(AudioFormat format, Mixer.Info mixerinfo)
      Obtains a target data line that can be used for recording audio data in the format specified by the AudioFormat object, provided by the mixer specified by the Mixer.Info object.
      void Line.open()
      Opens the line, indicating that it should acquire any required system resources and become operational.
      void SourceDataLine.open(AudioFormat format)
      Opens the line with the specified format, causing the line to acquire any required system resources and become operational.
      void TargetDataLine.open(AudioFormat format)
      Opens the line with the specified format, causing the line to acquire any required system resources and become operational.
      void Clip.open(AudioFormat format, byte[] data, int offset, int bufferSize)
      Opens the clip, meaning that it should acquire any required system resources and become operational.
      void SourceDataLine.open(AudioFormat format, int bufferSize)
      Opens the line with the specified format and suggested buffer size, causing the line to acquire any required system resources and become operational.
      void TargetDataLine.open(AudioFormat format, int bufferSize)
      Opens the line with the specified format and requested buffer size, causing the line to acquire any required system resources and become operational.
      void Clip.open(AudioInputStream stream)
      Opens the clip with the format and audio data present in the provided audio input stream.
Java™ Platform
Standard Ed. 8

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2022, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.

微信小程序

微信扫一扫体验

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部