diff options
Diffstat (limited to 'audio/gstsbcenc.c')
| -rw-r--r-- | audio/gstsbcenc.c | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/audio/gstsbcenc.c b/audio/gstsbcenc.c index 628d15c9..69e67aeb 100644 --- a/audio/gstsbcenc.c +++ b/audio/gstsbcenc.c @@ -33,6 +33,7 @@  #define SBC_ENC_DEFAULT_MODE CFG_MODE_AUTO  #define SBC_ENC_DEFAULT_BLOCKS 16  #define SBC_ENC_DEFAULT_SUB_BANDS 8 +#define SBC_ENC_DEFAULT_BITPOOL 53  #define SBC_ENC_DEFAULT_ALLOCATION CFG_ALLOCATION_AUTO  GST_DEBUG_CATEGORY_STATIC(sbc_enc_debug); @@ -111,7 +112,8 @@ static GstStaticPadTemplate sbc_enc_src_factory =  				"mode = (string) { mono, dual, stereo, joint }, "  				"blocks = (int) { 4, 8, 12, 16 }, "  				"subbands = (int) { 4, 8 }, " -				"allocation = (string) { snr, loudness }")); +				"allocation = (string) { snr, loudness }," +				"bitpool = (int) [ 2, 64 ]"));  static GstCaps* sbc_enc_generate_srcpad_caps(GstSbcEnc *enc, GstCaps *caps) @@ -145,6 +147,8 @@ static GstCaps* sbc_enc_generate_srcpad_caps(GstSbcEnc *enc, GstCaps *caps)  	else  		enc->sbc.allocation = enc->allocation; +	enc->sbc.bitpool = SBC_ENC_DEFAULT_BITPOOL; +  	mode = gst_sbc_get_mode_string(enc->sbc.joint);  	allocation = gst_sbc_get_allocation_string(enc->sbc.allocation); @@ -155,6 +159,7 @@ static GstCaps* sbc_enc_generate_srcpad_caps(GstSbcEnc *enc, GstCaps *caps)  					"subbands", G_TYPE_INT, enc->sbc.subbands,  					"blocks", G_TYPE_INT, enc->sbc.blocks,  					"allocation", G_TYPE_STRING, allocation, +					"bitpool", G_TYPE_INT, enc->sbc.bitpool,  					NULL);  	return src_caps; | 
