Class Context


  • public class Context
    extends Object
    This class provides a Sound3D Context associated with a specified device.
    Author:
    Athomas Goldberg
    • Constructor Detail

      • Context

        public Context​(Device device)
        Creates a new Context for a specified device.
        Parameters:
        device - The device the Context is being created for.
    • Method Detail

      • getALContext

        public ALCcontext getALContext()
        Returns the OpenAL context.
      • isValid

        public boolean isValid()
        Returns whether getALContext() is valid, i.e. not null, e.g. not destroy()'ed.
      • getALCError

        public int getALCError()
      • destroy

        public void destroy()
        destroys this context freeing its resources.
      • makeCurrent

        public boolean makeCurrent()
        Makes this context current.
      • release

        public boolean release()
        Release this context.
      • suspend

        public void suspend()
        Suspend this context
      • getDevice

        public Device getDevice()
        Gets the device associated with this context.
        Returns:
        the device associated with this context.