Class Library

java.lang.Object
com.mojang.blaze3d.audio.Library

public class Library extends Object
  • Field Details

    • NUM_OPEN_DEVICE_RETRIES

      private static final int NUM_OPEN_DEVICE_RETRIES
      See Also:
      Constant Field Values
    • LOGGER

      static final org.apache.logging.log4j.Logger LOGGER
    • DEFAULT_CHANNEL_COUNT

      private static final int DEFAULT_CHANNEL_COUNT
      See Also:
      Constant Field Values
    • device

      private long device
    • context

      private long context
    • EMPTY

      private static final Library.ChannelPool EMPTY
    • staticChannels

      private Library.ChannelPool staticChannels
    • streamingChannels

      private Library.ChannelPool streamingChannels
    • listener

      private final Listener listener
  • Constructor Details

    • Library

      public Library()
  • Method Details

    • init

      public void init()
    • getChannelCount

      private int getChannelCount()
    • tryOpenDevice

      private static long tryOpenDevice()
    • cleanup

      public void cleanup()
    • getListener

      public Listener getListener()
    • acquireChannel

      @Nullable public Channel acquireChannel(Library.Pool p_83698_)
    • releaseChannel

      public void releaseChannel(Channel p_83696_)
    • getDebugString

      public String getDebugString()