linphone-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-users] Run codecs in 8 bit


From: Simon Morlat
Subject: Re: [Linphone-users] Run codecs in 8 bit
Date: Thu, 12 Oct 2006 16:36:08 +0200
User-agent: KMail/1.9.4

Le mercredi 11 octobre 2006 09:53, Micha Nelissen a écrit :
> Simon Morlat wrote:
> > 8bit pcm does not give a good quality. Perhaps it's 8bit g711 (pcmu
> > or pcma).
> > In mediastreamer2/src
> > you need to modify one of the soundcard reader/writer (alsa.c or
> > oss.c, depending on whether you use alsa or old oss drivers), and the
> > connection of graph done in audiostream.c to insert the proper
> > decoder to pcm 16 bit if the samples returned by the audio device are
> > pcmu or pcma.
>
> Do the 8<->16bit conversion codecs already exist, or do I need to write
> them myself ?

If your hardware gives alaw(=pcma) or ulaw(=pcmu) 8 bit samples, then you can 
directly use the decoder in alaw.c and ulaw.c.
If it's not the case, you can just bitshift, but quality will be poor.

Simomn
>
> (Would bitshifting be enough?)
>
> Regards,
>
> Micha
>
>
> _______________________________________________
> Linphone-users mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/linphone-users




reply via email to

[Prev in Thread] Current Thread [Next in Thread]