linphone-developers
[Top][All Lists]
Advanced

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

Re: [Linphone-developers] Implementing sound support for non-standard ha


From: Simon Morlat
Subject: Re: [Linphone-developers] Implementing sound support for non-standard hardware
Date: Mon, 20 Dec 2004 12:02:32 +0100
User-agent: KMail/1.7.1

Le Mardi 14 Décembre 2004 12:20, Daniel Kabs [ML] a écrit :
> Hello!
>
> On Thu, 9 Dec 2004 Simon Morlat <address@hidden> wrote:
> > Yes you can add a new SndCard implementation to handle your problem.
> > This interface is expected to change in 1.0.x .
I said that ??
This interface is NOT expected to change in 1.0.x...
Sorry !

>
> For the time being I adapted the hpuxsndcard.c to work with my devices
> that interface to the audio hardware.
>
> I have one question regarding reading from the soundcard because I
> don't know if I understand the concepts of your fifos correctly.
>
> The read filter function ms_oss_read_process() in msossread.c reads the
> data from the soundcard. To do so, it request a buffer by calling
>
> ms_fifo_get_write_ptr(fifo,f->gran,(void**)&p);
>
> By using this call, one "promises" to fill the fifo with exactly
> f->gran bytes.
That's true.

>
> But the following call to snd_card_read() may read less bytes.
No I don't think so. If I'm right, f->gran is set to be the same as the 
minimum granularity returned by the SndCard.

> Isn't this a problem? And why is the return value of snd_card_read()
> ignored?
For the same reason, if it works well we will get what we expect, and if not 
we have no way to recover and this is a bug !

Simon
>
>
> Cheers
> Daniel Kabs
> Germany
>
>
> _______________________________________________
> Linphone-developers mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/linphone-developers




reply via email to

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