[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Ccrtp-devel] Newbie question regarding demo/audiorx.cpp
From: |
Federico Montesino Pouzols |
Subject: |
Re: [Ccrtp-devel] Newbie question regarding demo/audiorx.cpp |
Date: |
Wed, 27 Jul 2005 13:22:00 +0200 |
User-agent: |
Mutt/1.5.9i |
Hi, I think you are using a very old version of the library. These
methods do not longer exist.
On Wed, Jun 01, 2005 at 01:34:01PM +0200, Arjan wrote:
> -----------------begin snipped-----------------------------
> unsigned char buffer[PACKET_SIZE];
>
> TimerPort::setTimer(PERIOD);
>
> setCancel(THREAD_CANCEL_IMMEDIATE);
>
> for( int i=0 ; true ; i++ ){
> int count;
> do{
> const RTPData &d = socket->getCookedPacket();
> count = d.getSize();
> }while (count <= 0);
>
> if(i==0)
> ccxx_sleep(20);
>
> write(audiooutput,buffer,count);
> ----------------end snipped----------------------------------
>
> Q0.) PACKET_SIZE seems to be calcaulated as:
> PACKET_SIZE=SAMPLING_RATE*PERIOD/1000
> with SAMPLIN_RATE=8000 and PERIOD=20
>
> so in this case the buffer will be 160 uchars.
> Does RTPData.getSize () NEVER exceed this value?
>
> Q1.) the buffer is written to the audio-ouput but the buffer is never
> filled with the recieved "audiobytes". Is this correct?
>
> Q2.) Are there more "sources" besides the rfc to consult for better
> understanding of the rtp-lib?
> I already found the reference and programmers manual.
>
> Thanks
> Arjan
>
>
>
> _______________________________________________
> Ccrtp-devel mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/ccrtp-devel
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Ccrtp-devel] Newbie question regarding demo/audiorx.cpp,
Federico Montesino Pouzols <=