Package org.lwjgl.openal
Class SOFTReopenDevice
java.lang.Object
org.lwjgl.openal.SOFTReopenDevice
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.
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
alcReopenDeviceSOFT
(long device, CharSequence deviceName, int[] attribs) Array version of:ReopenDeviceSOFT
static boolean
alcReopenDeviceSOFT
(long device, CharSequence deviceName, IntBuffer attribs) Once a playback device is opened, it becomes associated with a particular output endpoint.static boolean
alcReopenDeviceSOFT
(long device, ByteBuffer deviceName, int[] attribs) Array version of:ReopenDeviceSOFT
static boolean
alcReopenDeviceSOFT
(long device, ByteBuffer deviceName, IntBuffer attribs) Once a playback device is opened, it becomes associated with a particular output endpoint.static boolean
nalcReopenDeviceSOFT
(long device, long deviceName, long attribs) Unsafe version of:ReopenDeviceSOFT
-
Method Details
-
nalcReopenDeviceSOFT
public static boolean nalcReopenDeviceSOFT(long device, long deviceName, long attribs) Unsafe version of:ReopenDeviceSOFT
-
alcReopenDeviceSOFT
public static boolean alcReopenDeviceSOFT(long device, @Nullable ByteBuffer deviceName, @Nullable 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 usingalcReopenDeviceSOFT
.- Parameters:
device
- a non-NULL
handle for an existing devicedeviceName
- the device name to open, orNULL
for the default (same as would be passed toOpenDevice
)attribs
- an attribute list to configure the device with, with the same attribute list that would be passed toCreateContext
.
-
alcReopenDeviceSOFT
public static boolean alcReopenDeviceSOFT(long device, @Nullable CharSequence deviceName, @Nullable 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 usingalcReopenDeviceSOFT
.- Parameters:
device
- a non-NULL
handle for an existing devicedeviceName
- the device name to open, orNULL
for the default (same as would be passed toOpenDevice
)attribs
- an attribute list to configure the device with, with the same attribute list that would be passed toCreateContext
.
-
alcReopenDeviceSOFT
public static boolean alcReopenDeviceSOFT(long device, @Nullable ByteBuffer deviceName, @Nullable int[] attribs) Array version of:ReopenDeviceSOFT
-
alcReopenDeviceSOFT
public static boolean alcReopenDeviceSOFT(long device, @Nullable CharSequence deviceName, @Nullable int[] attribs) Array version of:ReopenDeviceSOFT
-