Package playn.java

Class JavaAudio

java.lang.Object
playn.core.Audio
playn.java.JavaAudio

public class JavaAudio
extends Audio
  • Constructor Summary

    Constructors
    Constructor Description
    JavaAudio​(Exec exec)  
  • Method Summary

    Modifier and Type Method Description
    playn.java.JavaSound createSound​(playn.java.JavaAssets.Resource rsrc, boolean music)
    Creates a sound instance from the audio data available via in.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JavaAudio

      public JavaAudio​(Exec exec)
  • Method Details

    • createSound

      public playn.java.JavaSound createSound​(playn.java.JavaAssets.Resource rsrc, boolean music)
      Creates a sound instance from the audio data available via in.
      Parameters:
      rsrc - an resource instance via which the audio data can be read.
      music - if true, a custom Clip implementation will be used which can handle long audio clips; if false, the default Java clip implementation is used which cannot handle long audio clips.