Top Description Constructors Methods
org.lwjgl.openal

public Class SOFTReopenDevice

extends Object
Class Inheritance
Imports
javax.annotation.*, java.nio.*, org.lwjgl.system.*

Native bindings to the SOFT_reopen_device extension.

This extension provides a mechanism for applications to move the output of a device from one endpoint to another. Standard OpenAL devices are associated with an output on the system upon being opened, but if the endpoint should no longer be the desired output, there is no method for the application to easily change it. The only option for the application is to delete all AL objects, destroy the context, close the device handle, open a new device, and reload/recreate the necessary resources. A method to more simply move the device with its existing resources to a different output is easier, requiring less management from the application.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static boolean
alcReopenDeviceSOFT(long
a non-NULL handle for an existing device
device
,
ByteBuffer
the device name to open, or NULL for the default (same as would be passed to OpenDevice)
deviceName
,
IntBuffer
an attribute list to configure the device with, with the same attribute list that would be passed to CreateContext.
attribs
)

Once a playback device is opened, it becomes associated with a particular output endpoint.

public static boolean
alcReopenDeviceSOFT(long
a non-NULL handle for an existing device
device
,
CharSequence
the device name to open, or NULL for the default (same as would be passed to OpenDevice)
deviceName
,
IntBuffer
an attribute list to configure the device with, with the same attribute list that would be passed to CreateContext.
attribs
)

Once a playback device is opened, it becomes associated with a particular output endpoint.

public static boolean
alcReopenDeviceSOFT(long device, ByteBuffer deviceName, int[] attribs)

Array version of: ReopenDeviceSOFT

public static boolean
alcReopenDeviceSOFT(long device, CharSequence deviceName, int[] attribs)

Array version of: ReopenDeviceSOFT

public static boolean
nalcReopenDeviceSOFT(long device, long deviceName, long attribs)

Unsafe version of: ReopenDeviceSOFT

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SOFTReopenDeviceback to summary
protected SOFTReopenDevice()

Method Detail

alcReopenDeviceSOFTback to summary
public static boolean alcReopenDeviceSOFT(long device, ByteBuffer deviceName, IntBuffer attribs)

Once a playback device is opened, it becomes associated with a particular output endpoint. When this output is no longer the desired output, the playback device can be reopened to re-associate it with a potentially different output endpoint using alcReopenDeviceSOFT.

Parameters
device:long

a non-NULL handle for an existing device

deviceName:ByteBuffer

the device name to open, or NULL for the default (same as would be passed to OpenDevice)

attribs:IntBuffer

an attribute list to configure the device with, with the same attribute list that would be passed to CreateContext.

Annotations
@NativeType:ALCboolean
alcReopenDeviceSOFTback to summary
public static boolean alcReopenDeviceSOFT(long device, CharSequence deviceName, IntBuffer attribs)

Once a playback device is opened, it becomes associated with a particular output endpoint. When this output is no longer the desired output, the playback device can be reopened to re-associate it with a potentially different output endpoint using alcReopenDeviceSOFT.

Parameters
device:long

a non-NULL handle for an existing device

deviceName:CharSequence

the device name to open, or NULL for the default (same as would be passed to OpenDevice)

attribs:IntBuffer

an attribute list to configure the device with, with the same attribute list that would be passed to CreateContext.

Annotations
@NativeType:ALCboolean
alcReopenDeviceSOFTback to summary
public static boolean alcReopenDeviceSOFT(long device, ByteBuffer deviceName, int[] attribs)

Array version of: ReopenDeviceSOFT

Annotations
@NativeType:ALCboolean
alcReopenDeviceSOFTback to summary
public static boolean alcReopenDeviceSOFT(long device, CharSequence deviceName, int[] attribs)

Array version of: ReopenDeviceSOFT

Annotations
@NativeType:ALCboolean
nalcReopenDeviceSOFTback to summary
public static boolean nalcReopenDeviceSOFT(long device, long deviceName, long attribs)

Unsafe version of: ReopenDeviceSOFT