opus_projection_ambisonics_encoder_create method
Allocates and initializes a projection encoder state.
Call opus_projection_encoder_destroy() to release
this object when finished.
@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 mapping_family int: The mapping family to use for selecting
the appropriate projection.
@paramout
streams int *: The total number of streams that will
be encoded from the input.
@paramout
coupled_streams int *: Number of coupled (2 channel)
streams that will be encoded from the input.
@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
ffi.Pointer<OpusProjectionEncoder> opus_projection_ambisonics_encoder_create(
int Fs,
int channels,
int mapping_family,
ffi.Pointer<ffi.Int32> streams,
ffi.Pointer<ffi.Int32> coupled_streams,
int application,
ffi.Pointer<ffi.Int32> error,
) {
return _opus_projection_ambisonics_encoder_create(Fs, channels,
mapping_family, streams, coupled_streams, application, error);
}