Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

Packetization - not using ptime parameter correctly #516

Open
AndrejHafner opened this issue Jun 18, 2018 · 0 comments
Open

Packetization - not using ptime parameter correctly #516

AndrejHafner opened this issue Jun 18, 2018 · 0 comments

Comments

@AndrejHafner
Copy link

AndrejHafner commented Jun 18, 2018

Hello,
we found out that the parameter ptime (packetization time) which is 20 by default isn't being correctly used by the library. The reverse times on wireshark are correct (delta ms = 20), but the forward (outgoing packets) have different deltas, but they form a pattern. Here's a picture from RTP stream analysis:

doubango_graph_rtpstream-pic

Both graphs should be at around ~20ms, but the forward graph isn't.

Here's the data:

posnetek zaslona 25

We would like that both times would be same as ptime parameter.

Thank you in advance!

EDIT:
I have found out that the delay happens when capturing the sound from DirectSound API. The delay occurs at line 84 in tdav_producer_dsound.c .

dwEvent=WaitForMultipleObjects(TDAV_DSOUND_PRODUCER_NOTIF_POS_COUNT,dsound->notifEvents,FALSE,INFINITE);

On average the delay is same as ptime(20ms), but it is actually something like: 30-30-0-30-30-0 (ms) and so on instead of 20-20-20-20-20 (ms).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant