Top Description Constructors Methods
org.lwjgl.openal

public Class SOFTPauseDevice

extends Object
Class Inheritance
Imports
org.lwjgl.system.*

Native bindings to the SOFT_pause_device extension.

This extension allows applications to pause a playback device. The main purpose of this is to silence output, stop processing, and allow the audio hardware to go into a low-power mode. On a mobile device, for instance, apps may want to silence output and not waste battery life with unneeded processing when in the background.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static void
alcDevicePauseSOFT(long
the device to pause
device
)

Pauses a playback device.

public static void
alcDeviceResumeSOFT(long
the device to resume
device
)

Resumes playback of a paused device.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SOFTPauseDeviceback to summary
protected SOFTPauseDevice()

Method Detail

alcDevicePauseSOFTback to summary
public static void alcDevicePauseSOFT(long device)

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.

Parameters
device:long

the device to pause

Annotations
@NativeType:ALCvoid
alcDeviceResumeSOFTback to summary
public static void alcDeviceResumeSOFT(long device)

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.

Parameters
device:long

the device to resume

Annotations
@NativeType:ALCvoid