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

RE: [AVT] RTP SEND-RECV / Problem with linux 8.0 Sound.



Lavin,

Maybe you should try to use separate threads to handle send and receive.

regards
Chen

-----Original Message-----
From: avt-bounces at ietf.org [mailto:avt-bounces at ietf.org]On Behalf Of P Lavin
Sent: Friday, October 15, 2004 4:24 PM
To: Stephen Casner
Cc: avt at ietf.org
Subject: [AVT] RTP SEND-RECV / Problem with linux 8.0 Sound.



Hi Steve,

I've developed an RTP Stack. Now i'm doing the testing for the same.
The stack is being tested on Linux 8.0, afterwords this will be ported 
to some RTOS...
I've tested my stack with one SEND-Only session on one machine & RECV-
Only session on other machine. It worked fine !!! I was able to communi-
cate with the other endpoint using my stack(But a small delay was there).
Now i'm testing SendRecv session (ie sending and receiving in single (or 
multiple) thread)(I'll be reading/writing to /dev/dsp inside a loop)

The sequence of operations on single thread is given below,

while(1)
{
   //read from /dev/dsp.
   //Send this to n/w using RTP
   //recv data from RTP Stack.
   //Write this data to /dev/dsp
}

The problem lies here...
In this progam i'm reciving the data frm remote session correctly...and 
i'm writing that data after receiving ... but after each write the my 
audio has a delay in palying the next packet... wt i'm trying to say is 
the data from the remote machine seems to be non-contineous. Where as 
when i tried with send-only & recv-only the real-time playback was 
contineous...

I've opened the audio device using one of the files provided by vovida. 
I'm attatching that file.
Sampling rate 44100Hz, 16Bits.

Please help me with this issue...

Thanks in Advance,
Regards,
P Lavin




_______________________________________________
Audio/Video Transport Working Group
avt at ietf.org
https://www1.ietf.org/mailman/listinfo/avt