61 s->
glopts = twolame_init();
65 twolame_set_verbosity(s->
glopts, 0);
84 if ((ret = twolame_init_params(s->
glopts)))
105 ret = twolame_encode_buffer_float32_interleaved(s->
glopts,
111 ret = twolame_encode_buffer_float32(s->
glopts,
117 ret = twolame_encode_buffer_interleaved(s->
glopts,
123 ret = twolame_encode_buffer(s->
glopts,
154 #define OFFSET(x) offsetof(TWOLAMEContext, x)
155 #define AE AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_ENCODING_PARAM
160 {
"joint_stereo", NULL, 0,
AV_OPT_TYPE_CONST, { .i64 = TWOLAME_JOINT_STEREO }, 0, 0,
AE,
"mode" },
161 {
"dual_channel", NULL, 0,
AV_OPT_TYPE_CONST, { .i64 = TWOLAME_DUAL_CHANNEL }, 0, 0,
AE,
"mode" },
165 {
"error_protection",
"enable CRC error protection",
OFFSET(error_protection),
AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 1,
AE},
179 .
name =
"libtwolame",
195 .supported_samplerates = (
const int[]){ 16000, 22050, 24000, 32000, 44100, 48000, 0 },