Class Library

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

public class Library extends Object
  • Field Details

    • LOGGER

      static final org.slf4j.Logger LOGGER
    • NO_DEVICE

      private static final int NO_DEVICE
      See Also:
    • DEFAULT_CHANNEL_COUNT

      private static final int DEFAULT_CHANNEL_COUNT
      See Also:
    • currentDevice

      private long currentDevice
    • context

      private long context
    • supportsDisconnections

      private boolean supportsDisconnections
    • defaultDeviceName

      @Nullable private String defaultDeviceName
    • 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(@Nullable String p_193470_)
    • getChannelCount

      private int getChannelCount()
    • getDefaultDeviceName

      @Nullable public static String getDefaultDeviceName()
    • getCurrentDeviceName

      public String getCurrentDeviceName()
    • hasDefaultDeviceChanged

      public boolean hasDefaultDeviceChanged()
    • openDeviceOrFallback

      private static long openDeviceOrFallback(@Nullable String p_193473_)
    • tryOpenDevice

      private static OptionalLong tryOpenDevice(@Nullable String p_193476_)
    • 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()
    • getAvailableSoundDevices

      public List<String> getAvailableSoundDevices()
    • isCurrentDeviceDisconnected

      public boolean isCurrentDeviceDisconnected()