61 s->
glopts = twolame_init();
65 twolame_set_verbosity(s->
glopts, 0);
75 twolame_set_VBR(s->
glopts, TRUE);
82 if ((ret = twolame_init_params(s->
glopts)))
103 ret = twolame_encode_buffer_float32_interleaved(s->
glopts,
109 ret = twolame_encode_buffer_float32(s->
glopts,
115 ret = twolame_encode_buffer_interleaved(s->
glopts,
121 ret = twolame_encode_buffer(s->
glopts,
152 #define OFFSET(x) offsetof(TWOLAMEContext, x)
153 #define AE AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_ENCODING_PARAM
163 {
"error_protection",
"enable CRC error protection",
OFFSET(error_protection),
AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 1,
AE},
177 .
name =
"libtwolame",
193 .supported_samplerates = (
const int[]){ 16000, 22050, 24000, 32000, 44100, 48000, 0 },