Brian Furey wrote:
>  i'm using an open source VoIP application with the
> alsa driver. My card is the onboard intel8x0.
>
>    My problem is figuring out the patterns I am
> getting with the alsa driver when transmitting
> packets.

This depends more on how the VoIP application does things, not on the
driver/soundcard.

> For instance when I use the GSM codec with a packets
> size of 80 msecs and 132 bytes, packets are
> transmitted at alternate intervals of 64/96 msecs.
> When i use G.711 packets of 240 bytes are transmitted
> every 32 msecs with an extra packet every 15 pkts.
> With G.711 it is obvious that 256 bytes are added to driver
> sending buffer every 32 msecs.However this does not match for GSM
> because it needs only 132 bytes every 64/96 msecs.
> Can the driver change the amount of data it gets from the
> soundcard to suit the codec?

Have a look into /proc/asound/card0/pcm0?/sub0/hw_params to see the
period size.  The period size is constant, but if it is small enough
the application can just wait until enough periods have accumulated
for one packet.


HTH
Clemens




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to