opus_projection_ambisonics_encoder_init method
- Pointer<
OpusProjectionEncoder> st, - int Fs,
- int channels,
- int mapping_family,
- Pointer<
Int32> streams, - Pointer<
Int32> coupled_streams, - int application,
Initialize a previously allocated projection encoder state.
The memory pointed to by a st must be at least the size returned by
opus_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 #OPUS_RESET_STATE CTL.
@see opus_projection_ambisonics_encoder_create
@see opus_projection_ambisonics_encoder_get_size
@param st OpusProjectionEncoder*: Projection encoder state to initialize.
@param Fs opus_int32: Sampling rate of the input signal (in Hz).
This must be one of 8000, 12000, 16000,
24000, or 48000.
@param 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
).
@param streams int: The total number of streams to encode from the
input.
This must be no more than the number of channels.
@param coupled_streams int: Number of coupled (2 channel) streams
to encode.
This must be no larger than the total
number of streams.
Additionally, The total number of
encoded channels (streams +
coupled_streams
) must be no
more than the number of input channels.
@param application int: The target encoder application.
This must be one of the following:
- #OPUS_APPLICATION_VOIP
- Process signal for improved speech intelligibility.
- #OPUS_APPLICATION_AUDIO
- Favor faithfulness to the original input.
- #OPUS_APPLICATION_RESTRICTED_LOWDELAY
- Configure the minimum possible coding delay by disabling certain modes of operation.
Implementation
int opus_projection_ambisonics_encoder_init(
ffi.Pointer<OpusProjectionEncoder> st,
int Fs,
int channels,
int mapping_family,
ffi.Pointer<ffi.Int32> streams,
ffi.Pointer<ffi.Int32> coupled_streams,
int application,
) {
return _opus_projection_ambisonics_encoder_init(st, Fs, channels,
mapping_family, streams, coupled_streams, application);
}