Calculate delay time

Please post bug reports, feature requests, or any question regarding the DELPHI AREA products here.

Calculate delay time

Postby JARS » November 14th, 2008, 11:27 am

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.
JARS
Active Member
Active Member
 
Posts: 6
Joined: November 13th, 2008, 12:20 pm

Re: Calculate delay time

Postby Kambiz » November 14th, 2008, 12:53 pm

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.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm

Re: Calculate delay time

Postby JARS » November 14th, 2008, 1:14 pm

I don't understand. How calculate the lelay time?

# Recording Delay:
This delay is equal to BufferLength property of the audio recorder component
JARS
Active Member
Active Member
 
Posts: 6
Joined: November 13th, 2008, 12:20 pm

Re: Calculate delay time

Postby Kambiz » November 14th, 2008, 5:40 pm

In the Wave Audio Package, the BufferLength property is expressed in milliseconds.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 1 guest