Interface ALC

All Known Implementing Classes:
AndroidALC, IosALC, LwjglALC

public interface ALC
  • Field Details

  • Method Details

    • createALC

      void createALC()
      Creates an AL context.
    • destroyALC

      void destroyALC()
      Destroys an AL context.
    • isCreated

      boolean isCreated()
      Checks of creating an AL context.
      Returns:
      true if an AL context is created.
    • alcGetString

      String alcGetString(int parameter)
      Obtains string value(s) from ALC.
      Parameters:
      parameter - the information to query. One of: DEFAULT_DEVICE_SPECIFIER DEVICE_SPECIFIER EXTENSIONS CAPTURE_DEFAULT_DEVICE_SPECIFIER CAPTURE_DEVICE_SPECIFIER
      Returns:
      the parameter value
    • alcIsExtensionPresent

      boolean alcIsExtensionPresent(String extension)
      Verifies that a given extension is available for the current context and the device it is associated with.

      Invalid and unsupported string tokens return ALC_FALSE. A NULL deviceHandle is acceptable. extName is not case sensitive – the implementation will convert the name to all upper-case internally (and will express extension names in upper-case).

      Parameters:
      extension - the extension name.
      Returns:
      true if the extension is available, otherwise false
    • alcGetInteger

      void alcGetInteger(int param, IntBuffer buffer, int size)
      Obtains integer value(s) from ALC.
      Parameters:
      param - the information to query. One of: MAJOR_VERSION MINOR_VERSION ATTRIBUTES_SIZE ALL_ATTRIBUTES CAPTURE_SAMPLES
      buffer - the destination buffer.
      size - the buffer size.
    • alcDevicePauseSOFT

      void alcDevicePauseSOFT()
      Pauses a playback device.

      When paused, no contexts associated with the device will be processed or updated. Playing sources will not produce sound, have their offsets incremented, or process any more buffers, until the device is resumed. Pausing a device that is already paused is a legal no-op.

    • alcDeviceResumeSOFT

      void alcDeviceResumeSOFT()
      Resumes playback of a paused device.

      This will restart processing on the device -- sources will resume playing sound as normal. Resuming playback on a device that is not paused is a legal no-op.

      These functions are not reference counted. alcDeviceResumeSOFT only needs to be called once to resume playback, regardless of how many times DevicePauseSOFT was called.