Page 1 of 1

Calculate delay time

PostPosted: November 14th, 2008, 11:27 am
by JARS
Hi,
I need to make a program to test the delay in a IP call. I've two sound cards and need to play a wav audio in one and start recording in the another waiting the arrive of the wav, then I must show the delay time.
Can you help me how can I do this with Wave Audio components.
I'm using Delphi 7.
Thnaks in advance and sorry for my English.

Re: Calculate delay time

PostPosted: November 14th, 2008, 12:53 pm
by Kambiz
Hi,

There are two type of delays:

  1. Recording Delay:
    This delay is equal to BufferLength property of the audio recorder component
  2. Network Delay:
    To calculate this delay, from the source computer send a sample data to the target computer. The target computer should send that data back to the source computer. The elapsed time divided by two is the network delay. Of course you should do these steps several times to calculate the average network delay.

Re: Calculate delay time

PostPosted: November 14th, 2008, 1:14 pm
by JARS
I don't understand. How calculate the lelay time?

# Recording Delay:
This delay is equal to BufferLength property of the audio recorder component

Re: Calculate delay time

PostPosted: November 14th, 2008, 5:40 pm
by Kambiz
In the Wave Audio Package, the BufferLength property is expressed in milliseconds.