Top Inners Fields Constructors Methods
org.lwjgl.util.opus

public Class OpusProjection

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

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
OpusProjection.Functions

Contains the function pointers loaded from Opus.getLibrary().

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static long
nopus_projection_ambisonics_encoder_create(int Fs, int channels, int mapping_family, long streams, long coupled_streams, int application, long error)

Unsafe version of: projection_ambisonics_encoder_create

public static int
nopus_projection_ambisonics_encoder_init(long st, int Fs, int channels, int mapping_family, long streams, long coupled_streams, int application)

Unsafe version of: projection_ambisonics_encoder_init

public static int
nopus_projection_decode(long st, long data, int
number of bytes in payload
len
,
long pcm, int frame_size, int decode_fec)

Unsafe version of: projection_decode

public static int
nopus_projection_decode_float(long st, long data, int
number of bytes in payload
len
,
long pcm, int frame_size, int decode_fec)

Unsafe version of: projection_decode_float

public static long
nopus_projection_decoder_create(int Fs, int channels, int streams, int coupled_streams, long demixing_matrix, int
the size in bytes if the demixing matrix
demixing_matrix_size
,
long error)

Unsafe version of: projection_decoder_create

public static int
nopus_projection_decoder_init(long st, int Fs, int channels, int streams, int coupled_streams, long demixing_matrix, int
the size in bytes if the demixing matrix
demixing_matrix_size
)

Unsafe version of: projection_decoder_init

public static int
nopus_projection_encode(long st, long pcm, int frame_size, long data, int
size of the allocated memory for the output payload. This may be used to impose an upper limit on the instant bitrate, but should not be used as the only bitrate control. Use SET_BITRATE_REQUEST to control the bitrate.
max_data_bytes
)

Unsafe version of: projection_encode

public static int
nopus_projection_encode_float(long st, long pcm, int frame_size, long data, int
size of the allocated memory for the output payload. This may be used to impose an upper limit on the instant bitrate, but should not be used as the only bitrate control. Use SET_BITRATE_REQUEST to control the bitrate.
max_data_bytes
)

Unsafe version of: projection_encode_float

public static long
opus_projection_ambisonics_encoder_create(int
sampling rate of the input signal (in Hz). One of:
800012000160002400048000
Fs
,
int
number of channels in the input signal. This must be at most 255. It may be greater than the number of coded channels (streams + coupled_streams).
channels
,
int
the mapping family to use for selecting the appropriate projection
mapping_family
,
IntBuffer
the total number of streams that will be encoded from the input
streams
,
IntBuffer
number of coupled (2 channel) streams to encode that will be encoded from the input
coupled_streams
,
int
the target encoder application
application
,
IntBuffer
returns OK on success, or a negative error code on failure
error
)

Allocates and initializes a projection encoder state.

public static int

Returns:

the size in bytes on success, or a negative error code
opus_projection_ambisonics_encoder_get_size
(int
the total number of input channels to encode. This must be no more than 255.
channels
,
int
the mapping family to use for selecting the appropriate projection
mapping_family
)

Gets the size of an OpusProjectionEncoder structure.

public static int

Returns:

OK on success, or a negative error code on failure
opus_projection_ambisonics_encoder_init
(long
projection encoder state to initialize
st
,
int
sampling rate of the input signal (in Hz). One of:
800012000160002400048000
Fs
,
int
number of channels in the input signal. This must be at most 255. It may be greater than the number of coded channels (streams + coupled_streams).
channels
,
int mapping_family, IntBuffer
the total number of streams that will be encoded from the input
streams
,
IntBuffer
number of coupled (2 channel) streams to encode that will be encoded from the input. Additionally, the total number of encoded channels (streams + coupled_streams) must be no more than the number of input channels.
coupled_streams
,
int
the target encoder application
application
)

Initialize a previously allocated projection encoder state.

public static int

Returns:

number of decoded samples on success or a negative error code on failure
opus_projection_decode
(long
projection decoder state
st
,
ByteBuffer
input payload (Use a NULL pointer to indicate packet loss)
data
,
ShortBuffer
output signal, with interleaved samples. This must contain room for frame_size*channels samples.
pcm
,
int
number of samples per channel of available space in pcm.

If this is less than the maximum packet duration (120ms; 5760 for 48kHz), this function will not be capable of decoding some packets. In the case of PLC (data==NULL) or FEC (decode_fec=1), then frame_size needs to be exactly the duration of audio that is missing, otherwise the decoder will not be in the optimal state to decode the next incoming packet. For the PLC and FEC cases, frame_size must be a multiple of 2.5 ms.

frame_size
,
int
flag (0 or 1) to request that any in-band forward error correction data be decoded. If no such data is available, the frame is decoded as if it were lost.
decode_fec
)

Decode a projection Opus packet.

public static int

Returns:

number of decoded samples on success or a negative error code on failure
opus_projection_decode_float
(long
projection decoder state
st
,
ByteBuffer
input payload. Use a NULL pointer to indicate packet loss
data
,
FloatBuffer
output signal, with interleaved samples. (This must contain room for frame_size*channels samples.)
pcm
,
int
number of samples per channel of available space in pcm.

If this is less than the maximum packet duration (120ms; 5760 for 48kHz), this function will not be capable of decoding some packets. In the case of PLC (data==NULL) or FEC (decode_fec=1), then frame_size needs to be exactly the duration of audio that is missing, otherwise the decoder will not be in the optimal state to decode the next incoming packet. For the PLC and FEC cases, frame_size must be a multiple of 2.5 ms.

frame_size
,
int
flag (0 or 1) to request that any in-band forward error correction data be decoded. If no such data is available, the frame is decoded as if it were lost.
decode_fec
)

Decode a projection Opus packet with floating point output.

public static long
opus_projection_decoder_create(int
sampling rate of input signal (Hz). One of:
800012000160002400048000
Fs
,
int
number of channels to output
channels
,
int
the total number of streams coded in the input. This must be no more than 255.
streams
,
int
number streams to decode as coupled (2 channel) streams. This must be no larger than the total number of streams. Additionally, The total number of coded channels (streams + coupled_streams) must be no more than 255.
coupled_streams
,
ByteBuffer
demixing matrix that maps from coded channels to output channels
demixing_matrix
,
IntBuffer
returns OK on success, or a negative error code on failure
error
)

Allocates and initializes a projection decoder state.

private static int
opus_projection_decoder_ctl(long
projection decoder state
st
)

Performs a CTL function on an projection Opus decoder.

public static int
opus_projection_decoder_ctl(long
projection decoder state
st
,
int
CTL request
request
)

Performs a CTL function on a projection Opus decoder.

public static int
opus_projection_decoder_ctl(long
projection decoder state
st
,
Opus.CTLRequest
CTL request
request
)

Performs a CTL function on a projection Opus decoder.

public static int
opus_projection_decoder_destroy(long
projection decoder state to be freed
st
)

Frees an OpusProjectionDecoder allocated by projection_decoder_create.

public static int

Returns:

the size in bytes on success, or a negative error code on failure
opus_projection_decoder_get_size
(int
the total number of output channels. This must be no more than 255.
channels
,
int
the total number of streams coded in the input
streams
,
int
number streams to decode as coupled (2 channel) streams. This must be no larger than the total number of streams. Additionally, The total number of coded channels (streams + coupled_streams) must be no more than 255.
coupled_streams
)

Gets the size of an OpusProjectionDecoder structure.

public static int

Returns:

OK on success, or a negative error code on failure
opus_projection_decoder_init
(long
projection decoder state to initialize
st
,
int
sampling rate of input signal (Hz). One of:
800012000160002400048000
Fs
,
int
number of channels to output. This mustbe at most 255. It may be different from the number of coded channels (stream + coupled_streams).
channels
,
int
the total number of streams coded in the input. This must be no more than 255.
streams
,
int
number streams to decode as coupled (2 channel) streams. This must be no larger than the total number of streams. Additionally, The total number of coded channels (streams + coupled_streams) must be no more than 255.
coupled_streams
,
ByteBuffer
demixing matrix that maps from coded channels to output channels
demixing_matrix
)

Initialize a previously allocated projection decoder state object.

public static int

Returns:

the length of the encoded packet (in bytes) on success or a negative error code on failure
opus_projection_encode
(long
projection encoder state
st
,
ShortBuffer
the input signal as interleaved samples. This must contain frame_size*channels samples.
pcm
,
int
number of samples per channel in the input signal. This must be an Opus frame size for the encoder's sampling rate. For example, at 48 kHz the permitted values are 120, 240, 480, 960, 1920, and 2880. Passing in a duration of less than 10 ms (480 samples at 48 kHz) will prevent the encoder from using the LPC or hybrid modes.
frame_size
,
ByteBuffer
output payload. This must contain storage for at max_data_bytes.
data
)

Encodes a projection Opus frame.

public static int

Returns:

the length of the encoded packet (in bytes) on success or a negative error code on failure
opus_projection_encode_float
(long
projection encoder state
st
,
FloatBuffer
the input signal as interleaved samples with a normal range of +/-1.0. Samples with a range beyond +/-1.0 are supported but will be clipped by decoders using the integer API and should only be used if it is known that the far end supports extended dynamic range. This must contain frame_size*channels samples.
pcm
,
int
number of samples per channel in the input signal. This must be an Opus frame size for the encoder's sampling rate. For example, at 48 kHz the permitted values are 120, 240, 480, 960, 1920, and 2880. Passing in a duration of less than 10 ms (480 samples at 48 kHz) will prevent the encoder from using the LPC or hybrid modes.
frame_size
,
ByteBuffer
output payload. This must contain storage for at max_data_bytes.
data
)

Encodes a projection Opus frame from floating point input.

private static int
opus_projection_encoder_ctl(long
projection encoder state
st
)

Performs a CTL function on an projection Opus encoder.

public static int
opus_projection_encoder_ctl(long
projection encoder state
st
,
int
CTL request
request
)

Performs a CTL function on an projection Opus encoder.

public static int
opus_projection_encoder_ctl(long
projection encoder state
st
,
Opus.CTLRequest
CTL request
request
)

Performs a CTL function on an projection Opus encoder.

public static int
opus_projection_encoder_destroy(long
projection encoder state to be freed
st
)

Frees an OpusProjectionEncoder allocated by projection_ambisonics_encoder_create.

public static Opus.CTLRequest
OPUS_PROJECTION_GET_DEMIXING_MATRIX(ByteBuffer
returns the demixing matrix to the supplied pointer location.
matrix
)

Copies the demixing matrix to the supplied pointer location.

public static Opus.CTLRequest

Returns:

the gain (in dB. S7.8-format) of the demixing matrix.
OPUS_PROJECTION_GET_DEMIXING_MATRIX_GAIN
(IntBuffer value)

Gets the gain (in dB.

public static Opus.CTLRequest

Returns:

the size in bytes of the demixing matrix.
OPUS_PROJECTION_GET_DEMIXING_MATRIX_SIZE
(IntBuffer value)

Gets the size in bytes of the demixing matrix from the encoder.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

OPUS_PROJECTION_GET_DEMIXING_MATRIX_GAIN_REQUESTback to summary
public static final int OPUS_PROJECTION_GET_DEMIXING_MATRIX_GAIN_REQUEST

Projection CTLs

Enum values:
OPUS_PROJECTION_GET_DEMIXING_MATRIX_REQUESTback to summary
public static final int OPUS_PROJECTION_GET_DEMIXING_MATRIX_REQUEST

Projection CTLs

Enum values:
OPUS_PROJECTION_GET_DEMIXING_MATRIX_SIZE_REQUESTback to summary
public static final int OPUS_PROJECTION_GET_DEMIXING_MATRIX_SIZE_REQUEST

Projection CTLs

Enum values:

Constructor Detail

OpusProjectionback to summary
protected OpusProjection()

Method Detail

nopus_projection_ambisonics_encoder_createback to summary
public static long nopus_projection_ambisonics_encoder_create(int Fs, int channels, int mapping_family, long streams, long coupled_streams, int application, long error)

Unsafe version of: projection_ambisonics_encoder_create

nopus_projection_ambisonics_encoder_initback to summary
public static int nopus_projection_ambisonics_encoder_init(long st, int Fs, int channels, int mapping_family, long streams, long coupled_streams, int application)

Unsafe version of: projection_ambisonics_encoder_init

nopus_projection_decodeback to summary
public static int nopus_projection_decode(long st, long data, int len, long pcm, int frame_size, int decode_fec)

Unsafe version of: projection_decode

Parameters
len:int

number of bytes in payload

nopus_projection_decode_floatback to summary
public static int nopus_projection_decode_float(long st, long data, int len, long pcm, int frame_size, int decode_fec)

Unsafe version of: projection_decode_float

Parameters
len:int

number of bytes in payload

nopus_projection_decoder_createback to summary
public static long nopus_projection_decoder_create(int Fs, int channels, int streams, int coupled_streams, long demixing_matrix, int demixing_matrix_size, long error)

Unsafe version of: projection_decoder_create

Parameters
demixing_matrix_size:int

the size in bytes if the demixing matrix

nopus_projection_decoder_initback to summary
public static int nopus_projection_decoder_init(long st, int Fs, int channels, int streams, int coupled_streams, long demixing_matrix, int demixing_matrix_size)

Unsafe version of: projection_decoder_init

Parameters
demixing_matrix_size:int

the size in bytes if the demixing matrix

nopus_projection_encodeback to summary
public static int nopus_projection_encode(long st, long pcm, int frame_size, long data, int max_data_bytes)

Unsafe version of: projection_encode

Parameters
max_data_bytes:int

size of the allocated memory for the output payload. This may be used to impose an upper limit on the instant bitrate, but should not be used as the only bitrate control. Use SET_BITRATE_REQUEST to control the bitrate.

nopus_projection_encode_floatback to summary
public static int nopus_projection_encode_float(long st, long pcm, int frame_size, long data, int max_data_bytes)

Unsafe version of: projection_encode_float

Parameters
max_data_bytes:int

size of the allocated memory for the output payload. This may be used to impose an upper limit on the instant bitrate, but should not be used as the only bitrate control. Use SET_BITRATE_REQUEST to control the bitrate.

opus_projection_ambisonics_encoder_createback to summary
public static long opus_projection_ambisonics_encoder_create(int Fs, int channels, int mapping_family, IntBuffer streams, IntBuffer coupled_streams, int application, IntBuffer error)

Allocates and initializes a projection encoder state.

Call projection_encoder_destroy to release this object when finished.

Parameters
Fs:int

sampling rate of the input signal (in Hz). One of:

800012000160002400048000
channels:int

number of channels in the input signal. This must be at most 255. It may be greater than the number of coded channels (streams + coupled_streams).

mapping_family:int

the mapping family to use for selecting the appropriate projection

streams:IntBuffer

the total number of streams that will be encoded from the input

coupled_streams:IntBuffer

number of coupled (2 channel) streams to encode that will be encoded from the input

application:int

the target encoder application

error:IntBuffer

returns OK on success, or a negative error code on failure

Annotations
@NativeType:OpusProjectionEncoder *
opus_projection_ambisonics_encoder_get_sizeback to summary
public static int opus_projection_ambisonics_encoder_get_size(int channels, int mapping_family)

Gets the size of an OpusProjectionEncoder structure.

Parameters
channels:int

the total number of input channels to encode. This must be no more than 255.

mapping_family:int

the mapping family to use for selecting the appropriate projection

Returns:int

the size in bytes on success, or a negative error code

Annotations
@NativeType:opus_int32
opus_projection_ambisonics_encoder_initback to summary
public static int opus_projection_ambisonics_encoder_init(long st, int Fs, int channels, int mapping_family, IntBuffer streams, IntBuffer coupled_streams, int application)

Initialize a previously allocated projection encoder state.

The memory pointed to by st must be at least the size returned by projection_ambisonics_encoder_get_size. This is intended for applications which use their own allocator instead of malloc.

To reset a previously initialized state, use the RESET_STATE CTL.

Parameters
st:long

projection encoder state to initialize

Fs:int

sampling rate of the input signal (in Hz). One of:

800012000160002400048000
channels:int

number of channels in the input signal. This must be at most 255. It may be greater than the number of coded channels (streams + coupled_streams).

streams:IntBuffer

the total number of streams that will be encoded from the input

coupled_streams:IntBuffer

number of coupled (2 channel) streams to encode that will be encoded from the input. Additionally, the total number of encoded channels (streams + coupled_streams) must be no more than the number of input channels.

application:int

the target encoder application

Returns:int

OK on success, or a negative error code on failure

opus_projection_decodeback to summary
public static int opus_projection_decode(long st, ByteBuffer data, ShortBuffer pcm, int frame_size, int decode_fec)

Decode a projection Opus packet.

Parameters
st:long

projection decoder state

data:ByteBuffer

input payload (Use a NULL pointer to indicate packet loss)

pcm:ShortBuffer

output signal, with interleaved samples. This must contain room for frame_size*channels samples.

frame_size:int

number of samples per channel of available space in pcm.

If this is less than the maximum packet duration (120ms; 5760 for 48kHz), this function will not be capable of decoding some packets. In the case of PLC (data==NULL) or FEC (decode_fec=1), then frame_size needs to be exactly the duration of audio that is missing, otherwise the decoder will not be in the optimal state to decode the next incoming packet. For the PLC and FEC cases, frame_size must be a multiple of 2.5 ms.

decode_fec:int

flag (0 or 1) to request that any in-band forward error correction data be decoded. If no such data is available, the frame is decoded as if it were lost.

Returns:int

number of decoded samples on success or a negative error code on failure

opus_projection_decode_floatback to summary
public static int opus_projection_decode_float(long st, ByteBuffer data, FloatBuffer pcm, int frame_size, int decode_fec)

Decode a projection Opus packet with floating point output.

Parameters
st:long

projection decoder state

data:ByteBuffer

input payload. Use a NULL pointer to indicate packet loss

pcm:FloatBuffer

output signal, with interleaved samples. (This must contain room for frame_size*channels samples.)

frame_size:int

number of samples per channel of available space in pcm.

If this is less than the maximum packet duration (120ms; 5760 for 48kHz), this function will not be capable of decoding some packets. In the case of PLC (data==NULL) or FEC (decode_fec=1), then frame_size needs to be exactly the duration of audio that is missing, otherwise the decoder will not be in the optimal state to decode the next incoming packet. For the PLC and FEC cases, frame_size must be a multiple of 2.5 ms.

decode_fec:int

flag (0 or 1) to request that any in-band forward error correction data be decoded. If no such data is available, the frame is decoded as if it were lost.

Returns:int

number of decoded samples on success or a negative error code on failure

opus_projection_decoder_createback to summary
public static long opus_projection_decoder_create(int Fs, int channels, int streams, int coupled_streams, ByteBuffer demixing_matrix, IntBuffer error)

Allocates and initializes a projection decoder state.

Call projection_decoder_destroy to release this object when finished.

Parameters
Fs:int

sampling rate of input signal (Hz). One of:

800012000160002400048000
channels:int

number of channels to output

streams:int

the total number of streams coded in the input. This must be no more than 255.

coupled_streams:int

number streams to decode as coupled (2 channel) streams. This must be no larger than the total number of streams. Additionally, The total number of coded channels (streams + coupled_streams) must be no more than 255.

demixing_matrix:ByteBuffer

demixing matrix that maps from coded channels to output channels

error:IntBuffer

returns OK on success, or a negative error code on failure

Annotations
@NativeType:OpusProjectionDecoder *
opus_projection_decoder_ctlback to summary
private static int opus_projection_decoder_ctl(long st)

Performs a CTL function on an projection Opus decoder.

Parameters
st:long

projection decoder state

opus_projection_decoder_ctlback to summary
public static int opus_projection_decoder_ctl(long st, int request)

Performs a CTL function on a projection Opus decoder.

Parameters
st:long

projection decoder state

request:int

CTL request

opus_projection_decoder_ctlback to summary
public static int opus_projection_decoder_ctl(long st, Opus.CTLRequest request)

Performs a CTL function on a projection Opus decoder.

Parameters
st:long

projection decoder state

request:Opus.CTLRequest

CTL request

opus_projection_decoder_destroyback to summary
public static int opus_projection_decoder_destroy(long st)

Frees an OpusProjectionDecoder allocated by projection_decoder_create.

Parameters
st:long

projection decoder state to be freed

opus_projection_decoder_get_sizeback to summary
public static int opus_projection_decoder_get_size(int channels, int streams, int coupled_streams)

Gets the size of an OpusProjectionDecoder structure.

Parameters
channels:int

the total number of output channels. This must be no more than 255.

streams:int

the total number of streams coded in the input

coupled_streams:int

number streams to decode as coupled (2 channel) streams. This must be no larger than the total number of streams. Additionally, The total number of coded channels (streams + coupled_streams) must be no more than 255.

Returns:int

the size in bytes on success, or a negative error code on failure

Annotations
@NativeType:opus_int32
opus_projection_decoder_initback to summary
public static int opus_projection_decoder_init(long st, int Fs, int channels, int streams, int coupled_streams, ByteBuffer demixing_matrix)

Initialize a previously allocated projection decoder state object.

The memory pointed to by st must be at least the size returned by projection_decoder_get_size. This is intended for applications which use their own allocator instead of malloc.

To reset a previously initialized state, use the RESET_STATE CTL.

Parameters
st:long

projection decoder state to initialize

Fs:int

sampling rate of input signal (Hz). One of:

800012000160002400048000
channels:int

number of channels to output. This mustbe at most 255. It may be different from the number of coded channels (stream + coupled_streams).

streams:int

the total number of streams coded in the input. This must be no more than 255.

coupled_streams:int

number streams to decode as coupled (2 channel) streams. This must be no larger than the total number of streams. Additionally, The total number of coded channels (streams + coupled_streams) must be no more than 255.

demixing_matrix:ByteBuffer

demixing matrix that maps from coded channels to output channels

Returns:int

OK on success, or a negative error code on failure

opus_projection_encodeback to summary
public static int opus_projection_encode(long st, ShortBuffer pcm, int frame_size, ByteBuffer data)

Encodes a projection Opus frame.

Parameters
st:long

projection encoder state

pcm:ShortBuffer

the input signal as interleaved samples. This must contain frame_size*channels samples.

frame_size:int

number of samples per channel in the input signal. This must be an Opus frame size for the encoder's sampling rate. For example, at 48 kHz the permitted values are 120, 240, 480, 960, 1920, and 2880. Passing in a duration of less than 10 ms (480 samples at 48 kHz) will prevent the encoder from using the LPC or hybrid modes.

data:ByteBuffer

output payload. This must contain storage for at max_data_bytes.

Returns:int

the length of the encoded packet (in bytes) on success or a negative error code on failure

opus_projection_encode_floatback to summary
public static int opus_projection_encode_float(long st, FloatBuffer pcm, int frame_size, ByteBuffer data)

Encodes a projection Opus frame from floating point input.

Parameters
st:long

projection encoder state

pcm:FloatBuffer

the input signal as interleaved samples with a normal range of +/-1.0. Samples with a range beyond +/-1.0 are supported but will be clipped by decoders using the integer API and should only be used if it is known that the far end supports extended dynamic range. This must contain frame_size*channels samples.

frame_size:int

number of samples per channel in the input signal. This must be an Opus frame size for the encoder's sampling rate. For example, at 48 kHz the permitted values are 120, 240, 480, 960, 1920, and 2880. Passing in a duration of less than 10 ms (480 samples at 48 kHz) will prevent the encoder from using the LPC or hybrid modes.

data:ByteBuffer

output payload. This must contain storage for at max_data_bytes.

Returns:int

the length of the encoded packet (in bytes) on success or a negative error code on failure

opus_projection_encoder_ctlback to summary
private static int opus_projection_encoder_ctl(long st)

Performs a CTL function on an projection Opus encoder.

Parameters
st:long

projection encoder state

opus_projection_encoder_ctlback to summary
public static int opus_projection_encoder_ctl(long st, int request)

Performs a CTL function on an projection Opus encoder.

Parameters
st:long

projection encoder state

request:int

CTL request

opus_projection_encoder_ctlback to summary
public static int opus_projection_encoder_ctl(long st, Opus.CTLRequest request)

Performs a CTL function on an projection Opus encoder.

Parameters
st:long

projection encoder state

request:Opus.CTLRequest

CTL request

opus_projection_encoder_destroyback to summary
public static int opus_projection_encoder_destroy(long st)

Frees an OpusProjectionEncoder allocated by projection_ambisonics_encoder_create.

Parameters
st:long

projection encoder state to be freed

OPUS_PROJECTION_GET_DEMIXING_MATRIXback to summary
public static Opus.CTLRequest OPUS_PROJECTION_GET_DEMIXING_MATRIX(ByteBuffer matrix)

Copies the demixing matrix to the supplied pointer location.

Parameters
matrix:ByteBuffer

returns the demixing matrix to the supplied pointer location.

OPUS_PROJECTION_GET_DEMIXING_MATRIX_GAINback to summary
public static Opus.CTLRequest OPUS_PROJECTION_GET_DEMIXING_MATRIX_GAIN(IntBuffer value)

Gets the gain (in dB. S7.8-format) of the demixing matrix from the encoder.

Returns:Opus.CTLRequest

the gain (in dB. S7.8-format) of the demixing matrix.

OPUS_PROJECTION_GET_DEMIXING_MATRIX_SIZEback to summary
public static Opus.CTLRequest OPUS_PROJECTION_GET_DEMIXING_MATRIX_SIZE(IntBuffer value)

Gets the size in bytes of the demixing matrix from the encoder.

Returns:Opus.CTLRequest

the size in bytes of the demixing matrix.

org.lwjgl.util.opus back to summary

public final Class OpusProjection.Functions

extends Object
Class Inheritance

Contains the function pointers loaded from Opus.getLibrary().

Field Summary

Modifier and TypeField and Description
public static final long
public static final long
public static final long
public static final long
projection_decode

Function address.

public static final long
projection_decode_float

Function address.

public static final long
projection_decoder_create

Function address.

public static final long
projection_decoder_ctl

Function address.

public static final long
projection_decoder_destroy

Function address.

public static final long
projection_decoder_get_size

Function address.

public static final long
projection_decoder_init

Function address.

public static final long
projection_encode

Function address.

public static final long
projection_encode_float

Function address.

public static final long
projection_encoder_ctl

Function address.

public static final long
projection_encoder_destroy

Function address.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

projection_ambisonics_encoder_createback to summary
public static final long projection_ambisonics_encoder_create

Function address.

projection_ambisonics_encoder_get_sizeback to summary
public static final long projection_ambisonics_encoder_get_size

Function address.

projection_ambisonics_encoder_initback to summary
public static final long projection_ambisonics_encoder_init

Function address.

projection_decodeback to summary
public static final long projection_decode

Function address.

projection_decode_floatback to summary
public static final long projection_decode_float

Function address.

projection_decoder_createback to summary
public static final long projection_decoder_create

Function address.

projection_decoder_ctlback to summary
public static final long projection_decoder_ctl

Function address.

projection_decoder_destroyback to summary
public static final long projection_decoder_destroy

Function address.

projection_decoder_get_sizeback to summary
public static final long projection_decoder_get_size

Function address.

projection_decoder_initback to summary
public static final long projection_decoder_init

Function address.

projection_encodeback to summary
public static final long projection_encode

Function address.

projection_encode_floatback to summary
public static final long projection_encode_float

Function address.

projection_encoder_ctlback to summary
public static final long projection_encoder_ctl

Function address.

projection_encoder_destroyback to summary
public static final long projection_encoder_destroy

Function address.

Constructor Detail

Functionsback to summary
private Functions()