mirror of
https://github.com/aaru-dps/Aaru.Compression.Native.git
synced 2025-12-16 19:24:31 +00:00
Fix FLAC API with missing LPC order.
This commit is contained in:
3
flac.c
3
flac.c
@@ -143,6 +143,7 @@ AARU_EXPORT size_t AARU_CALL AARU_flac_encode_redbook_buffer(uint8_t* dst_
|
|||||||
int32_t do_mid_side_stereo,
|
int32_t do_mid_side_stereo,
|
||||||
int32_t loose_mid_side_stereo,
|
int32_t loose_mid_side_stereo,
|
||||||
const char* apodization,
|
const char* apodization,
|
||||||
|
uint32_t max_lpc_order,
|
||||||
uint32_t qlp_coeff_precision,
|
uint32_t qlp_coeff_precision,
|
||||||
int32_t do_qlp_coeff_prec_search,
|
int32_t do_qlp_coeff_prec_search,
|
||||||
int32_t do_exhaustive_model_search,
|
int32_t do_exhaustive_model_search,
|
||||||
@@ -191,7 +192,7 @@ AARU_EXPORT size_t AARU_CALL AARU_flac_encode_redbook_buffer(uint8_t* dst_
|
|||||||
FLAC__stream_encoder_set_loose_mid_side_stereo(encoder, loose_mid_side_stereo);
|
FLAC__stream_encoder_set_loose_mid_side_stereo(encoder, loose_mid_side_stereo);
|
||||||
// Apodization
|
// Apodization
|
||||||
FLAC__stream_encoder_set_apodization(encoder, apodization);
|
FLAC__stream_encoder_set_apodization(encoder, apodization);
|
||||||
FLAC__stream_encoder_set_max_lpc_order(encoder, qlp_coeff_precision);
|
FLAC__stream_encoder_set_max_lpc_order(encoder, max_lpc_order);
|
||||||
FLAC__stream_encoder_set_qlp_coeff_precision(encoder, qlp_coeff_precision);
|
FLAC__stream_encoder_set_qlp_coeff_precision(encoder, qlp_coeff_precision);
|
||||||
FLAC__stream_encoder_set_do_qlp_coeff_prec_search(encoder, do_qlp_coeff_prec_search);
|
FLAC__stream_encoder_set_do_qlp_coeff_prec_search(encoder, do_qlp_coeff_prec_search);
|
||||||
FLAC__stream_encoder_set_do_exhaustive_model_search(encoder, do_exhaustive_model_search);
|
FLAC__stream_encoder_set_do_exhaustive_model_search(encoder, do_exhaustive_model_search);
|
||||||
|
|||||||
@@ -77,6 +77,7 @@ AARU_EXPORT size_t AARU_CALL AARU_flac_encode_redbook_buffer(uint8_t* dst_
|
|||||||
int32_t do_mid_side_stereo,
|
int32_t do_mid_side_stereo,
|
||||||
int32_t loose_mid_side_stereo,
|
int32_t loose_mid_side_stereo,
|
||||||
const char* apodization,
|
const char* apodization,
|
||||||
|
uint32_t max_lpc_order,
|
||||||
uint32_t qlp_coeff_precision,
|
uint32_t qlp_coeff_precision,
|
||||||
int32_t do_qlp_coeff_prec_search,
|
int32_t do_qlp_coeff_prec_search,
|
||||||
int32_t do_exhaustive_model_search,
|
int32_t do_exhaustive_model_search,
|
||||||
|
|||||||
@@ -117,6 +117,7 @@ TEST_F(flacFixture, flacCompress)
|
|||||||
1,
|
1,
|
||||||
0,
|
0,
|
||||||
"partial_tukey(0/1.0/1.0)",
|
"partial_tukey(0/1.0/1.0)",
|
||||||
|
12,
|
||||||
0,
|
0,
|
||||||
1,
|
1,
|
||||||
false,
|
false,
|
||||||
|
|||||||
Reference in New Issue
Block a user