Package icyllis.modernui.audio

# Class AudioManager

java.lang.Object
icyllis.modernui.audio.AudioManager

All Implemented Interfaces:
  `AutoCloseable`

public class AudioManager extends Object implements AutoCloseable

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final org.apache.logging.log4j.Marker`
  `MARKER`
  `static final int`
  `TICK_PERIOD`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `addTrack(Track track)`
  `void`
  `close()`
  `void`
  `destroy()`
  `static AudioManager`
  `getInstance()`
  Returns the global `AudioManager` instance.
  `void`
  `initialize()`
  `void`
  `initialize(boolean integrated)`
  `void`
  `removeTrack(Track track)`
  `void`
  `setDevice(String name)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### MARKER

    public static final org.apache.logging.log4j.Marker MARKER

  - ### TICK_PERIOD

    public static final int TICK_PERIOD
    See Also:
      - Constant Field Values

- ## Method Details

  - ### getInstance

    @Nonnull public static AudioManager getInstance()
    Returns the global `AudioManager` instance.
    Returns:
      the global instance

  - ### initialize

    @MainThread public void initialize()

  - ### initialize

    @MainThread public void initialize(boolean integrated)

  - ### setDevice

    public void setDevice(@Nullable String name)

  - ### destroy

    public void destroy()

  - ### addTrack

    public void addTrack(@Nonnull Track track)

  - ### removeTrack

    public void removeTrack(@Nonnull Track track)

  - ### close

    public void close()
    Specified by:
      `close` in interface `AutoCloseable`