Class OALSystem

java.lang.Object
com.blackrook.gloop.openal.OALSystem

public final class OALSystem extends Object
This class is a central sound system class designed to manage an OpenAL instance and environment.
Author:
Matthew Tropiano
  • Constructor Details

    • OALSystem

      public OALSystem()
      Creates a new OpenAL Sound System.
  • Method Details

    • createDevice

      public OALDevice createDevice()
      Allocates a new default device.
      Returns:
      the newly allocated device.
      Throws:
      SoundSystemException - if the device can't be created.
      See Also:
    • createDevice

      public OALDevice createDevice(String name)
      Creates a new device.
      Parameters:
      name - the name of the device (null for default).
      Returns:
      the newly allocated device.
      Throws:
      SoundSystemException - if the device can't be created.
    • shutDown

      public void shutDown()
      Runs all Shut Down hooks, destroys all contexts and closes all open devices.
    • finalize

      public void finalize() throws Throwable
      Overrides:
      finalize in class Object
      Throws:
      Throwable