Class SOFTSourceStartDelay

java.lang.Object
org.lwjgl.openal.SOFTSourceStartDelay

public class SOFTSourceStartDelay extends Object
Native bindings to the SOFT_source_start_delay extension.

This extension allows applications to play a source at a particular future time.

With standard OpenAL, an application can play a source with the SourcePlay or SourcePlayv functions which causes sources to start playing as soon as possible, but the actual start time is left to the implementation to deal with (which could be on the next 10ms or 20ms boundary, or whenever the mixer can start processing the source).

Aside from alSourcePlayv starting all given sources in sync, there is no way to start playing sources at particular times relative to each other, or synchronized to some specific time point.

This extension adds functionality to start source playback at an absolute device clock time, as well as to start with a relative delay.

Requires SOFT_device_clock.

  • Method Details

    • alSourcePlayAtTimeSOFT

      public static void alSourcePlayAtTimeSOFT(int source, long start_time)
    • nalSourcePlayAtTimevSOFT

      public static void nalSourcePlayAtTimevSOFT(int n, long sources, long start_time)
    • alSourcePlayAtTimevSOFT

      public static void alSourcePlayAtTimevSOFT(IntBuffer sources, long start_time)
    • alSourcePlayAtTimevSOFT

      public static void alSourcePlayAtTimevSOFT(int[] sources, long start_time)
      Array version of: SourcePlayAtTimevSOFT