This extension allows applications to query the timing clock from the audio device. This clock lets applications measure the passage of time as the audio device sees it, which may be slightly different than the system clock's tick rate (the infamous timer drift).
If the SOFT_pause_device extension is available, the device clock does not increment while the device playback is paused. It is
implementation-defined whether or not the device clock increments while no contexts are allocated. The initial clock time value of an opened device is
also implementation-defined, except that it must not be negative and should be low enough to avoid wrapping during program execution.
Requires SOFT_source_latency
| Modifier and Type | Field and Description |
|---|---|
| public static final int | AL_SAMPLE_OFFSET_CLOCK_SOFT
Accepted as the |
| public static final int | AL_SEC_OFFSET_CLOCK_SOFT
Accepted as the |
| public static final int | ALC_DEVICE_CLOCK_LATENCY_SOFT
Accepted as the |
| public static final int | ALC_DEVICE_CLOCK_SOFT
Accepted as the |
| public static final int | ALC_DEVICE_LATENCY_SOFT
Accepted as the |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description | ||||||
|---|---|---|---|---|---|---|---|
| public static void | alcGetInteger64vSOFT(long device, int
Accepts all the same | ||||||
| public static long | alcGetInteger64vSOFT(long device, int
Accepts all the same | ||||||
| public static void | |||||||
| public static void | nalcGetInteger64vSOFT(long device, int pname, int size, long values)
Unsafe version of: |
| AL_SAMPLE_OFFSET_CLOCK_SOFT | back to summary |
|---|---|
| public static final int AL_SAMPLE_OFFSET_CLOCK_SOFT Accepted as the Returns the playback position, expressed in fixed-point samples, along with the device clock, expressed in nanoseconds. This attribute is read-only. The first value in the returned vector is the sample offset, which is a 32.32 fixed-point value. The whole number is stored in the upper 32 bits and
the fractional component is in the lower 32 bits. The value is similar to that returned by The second value is the device clock, in nanoseconds. This updates at the same rate as the offset, and both are measured atomically with respect to one another. | |
| AL_SEC_OFFSET_CLOCK_SOFT | back to summary |
|---|---|
| public static final int AL_SEC_OFFSET_CLOCK_SOFT Accepted as the Returns the playback position, along with the device clock, both expressed in seconds. This attribute is read-only. The first value in the returned vector is the offset in seconds. The value is similar to that returned by The second value is the device clock, in seconds. This updates at the same rate as the offset, and both are measured atomically with respect to one another. Be aware that this value may be subtly different from the other device clock queries due to the variable precision of floating-point values. | |
| ALC_DEVICE_CLOCK_LATENCY_SOFT | back to summary |
|---|---|
| public static final int ALC_DEVICE_CLOCK_LATENCY_SOFT Accepted as the | |
| ALC_DEVICE_CLOCK_SOFT | back to summary |
|---|---|
| public static final int ALC_DEVICE_CLOCK_SOFT Accepted as the | |
| ALC_DEVICE_LATENCY_SOFT | back to summary |
|---|---|
| public static final int ALC_DEVICE_LATENCY_SOFT Accepted as the | |
| SOFTDeviceClock | back to summary |
|---|---|
| protected SOFTDeviceClock() | |
| alcGetInteger64vSOFT | back to summary | ||||||
|---|---|---|---|---|---|---|---|
| public static void alcGetInteger64vSOFT(long device, int pname, LongBuffer values) Accepts all the same Note that the size parameter is the number of
| |||||||
| alcGetInteger64vSOFT | back to summary | ||||||
|---|---|---|---|---|---|---|---|
| public static long alcGetInteger64vSOFT(long device, int pname) Accepts all the same Note that the size parameter is the number of
| |||||||
| alcGetInteger64vSOFT | back to summary |
|---|---|
| public static void alcGetInteger64vSOFT(long device, int pname, long[] values) Array version of:
| |
| nalcGetInteger64vSOFT | back to summary |
|---|---|
| public static void nalcGetInteger64vSOFT(long device, int pname, int size, long values) Unsafe version of: | |