Top Description Inners Constructors Methods
org.lwjgl.openal

public abstract Class SOFTCallbackBufferType

extends Callback
implements SOFTCallbackBufferTypeI
Class Inheritance
All Implemented Interfaces
org.lwjgl.openal.SOFTCallbackBufferTypeI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.openal.SOFTCallbackBufferType.Container
Imports
javax.annotation.*, org.lwjgl.system.*

Type


void * (*invoke) (
    ALvoid *userptr,
    ALvoid *sampledata,
    ALsizei numbytes
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
protected
pack-priv
SOFTCallbackBufferType(long functionPointer)

Method Summary

Modifier and TypeMethod and Description
public static SOFTCallbackBufferType

Returns:

the new SOFTCallbackBufferType
create
(long functionPointer)

Creates a SOFTCallbackBufferType instance from the specified function pointer.

public static SOFTCallbackBufferType
create(SOFTCallbackBufferTypeI instance)

Creates a SOFTCallbackBufferType instance that delegates to the specified SOFTCallbackBufferTypeI instance.

public static SOFTCallbackBufferType
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

SOFTCallbackBufferTypeback to summary
protected SOFTCallbackBufferType()
SOFTCallbackBufferTypeback to summary
pack-priv SOFTCallbackBufferType(long functionPointer)

Method Detail

createback to summary
public static SOFTCallbackBufferType create(long functionPointer)

Creates a SOFTCallbackBufferType instance from the specified function pointer.

Returns:SOFTCallbackBufferType

the new SOFTCallbackBufferType

createback to summary
public static SOFTCallbackBufferType create(SOFTCallbackBufferTypeI instance)

Creates a SOFTCallbackBufferType instance that delegates to the specified SOFTCallbackBufferTypeI instance.

createSafeback to summary
public static SOFTCallbackBufferType createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
org.lwjgl.openal back to summary

private final Class SOFTCallbackBufferType.Container

extends SOFTCallbackBufferType
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final SOFTCallbackBufferTypeI

Constructor Summary

AccessConstructor and Description
pack-priv
Container(long functionPointer, SOFTCallbackBufferTypeI delegate)

Method Summary

Modifier and TypeMethod and Description
public long
invoke(long
the same pointer provided to BufferCallbackSOFT
userptr
,
long
a pointer to the sample data buffer that should be filled in by the function
sampledata
,
int
the number of bytes needed to fill the sample data buffer for this invocation.

Guaranteed to be greater than 0 and a multiple of the frame size for the format.

numbytes
)

Implements org.lwjgl.openal.SOFTCallbackBufferTypeI.invoke.

Inherited from org.lwjgl.openal.SOFTCallbackBufferType:
createcreatecreateSafe

Field Detail

delegateback to summary
private final SOFTCallbackBufferTypeI delegate

Constructor Detail

Containerback to summary
pack-priv Container(long functionPointer, SOFTCallbackBufferTypeI delegate)

Method Detail

invokeback to summary
public long invoke(long userptr, long sampledata, int numbytes)

Implements org.lwjgl.openal.SOFTCallbackBufferTypeI.invoke.

Parameters
userptr:long

Doc from org.lwjgl.openal.SOFTCallbackBufferTypeI.invoke.

the same pointer provided to BufferCallbackSOFT

sampledata:long

Doc from org.lwjgl.openal.SOFTCallbackBufferTypeI.invoke.

a pointer to the sample data buffer that should be filled in by the function

numbytes:int

Doc from org.lwjgl.openal.SOFTCallbackBufferTypeI.invoke.

the number of bytes needed to fill the sample data buffer for this invocation.

Guaranteed to be greater than 0 and a multiple of the frame size for the format.

Returns:long

Doc from org.lwjgl.openal.SOFTCallbackBufferTypeI.invoke.

the number of bytes actually written, which must be equal to or less than numbytes.

If the return value is less than numbytes, it's treated as the end of the buffer and the source will play any complete samples before stopping.

Annotations
@Override