Hi Siga,

Isn't G.711 decoded already signed 16bits per sample @ 8000Hz PCM (I 
seem to remember that's what the ITU implementation outputs - signed 
short array)? I don't believe you need to do any resampling if your 
playback device is setup to use 16bit single channel 8000Hz PCM audio.

Brandon

On 03/29/2011 10:46 AM, Siga wrote:
> Hi,
> I need some assistance from the SIP professionals regarding the decoder
> part, i am using A-Law for encoding and decoding. My encoder for  RTP
> packets using G.711 A-law encoder works pretty much OK, but I have got some
> flaws with the decoding part. Especially with the upsampling conversion from
> 8 bits to 16 bits, what should be the size of the buffer for storing the
> decoded RTP payload. I can hear some audio but with poor quality.
>
> Any working example regarding this part would be helpful for my analysis.
>
> Regards
> _______________________________________________
> Sip-implementors mailing list
> [email protected]
> https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors
>    
_______________________________________________
Sip-implementors mailing list
[email protected]
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors

Reply via email to