22 #include <shine/layer3.h>
31 #define BUFFER_SIZE (4096 * 20)
50 shine_set_config_mpeg_defaults(&s->
config.mpeg);
55 s->
config.wave.channels = avctx->
channels == 2 ? PCM_STEREO : PCM_MONO;
56 if (shine_check_config(s->
config.wave.samplerate, s->
config.mpeg.bitr) < 0) {
78 data = shine_encode_buffer(s->
shine, (int16_t **)frame->
data, &written);
80 data = shine_flush(s->
shine, &written);
103 len = hdr.frame_size;
104 if (len <= s->buffer_index) {
125 shine_close(s->
shine);
130 44100, 48000, 32000, 0