DELPHI AREA
MESSAGE BOARD
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   FavoritesFavorites   Watched TopicsWatched Topics     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Bi-directional live audio

 
Post new topic   Reply to topic   printer-friendly view    DELPHI AREA Forum Index -> DELPHI AREA's Products
View previous topic :: View next topic  
Author Message
Magno
Member


Joined: 31 Aug 2005
Posts: 5

PostPosted: 31/08/05 13:06    Post subject: Bi-directional live audio Reply with quote

First of all, congratulations Kambiz for the WaveAudio components! Very Happy

Well, I am trying to make a very simple 2-way comunicator and my question is if I need use a technique that has both the Broadcaster & Client within the application or they can handle bi-directional audio streamming? I say that because in this case I will need to use 2 tcp ports.

Other question is if I can send it by UDP?

Thank you a lot and best regards,

Magno
Back to top
View user's profile Send private message
Magno
Member


Joined: 31 Aug 2005
Posts: 5

PostPosted: 31/08/05 19:28    Post subject: Reply with quote

in advance with this thread, in what could help changing the buffercount of the component LiveAudioPlayer and LiveAudioRecoder?
Back to top
View user's profile Send private message
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 1044
Location: Tehran, Iran

PostPosted: 31/08/05 23:20    Post subject: Reply with quote

Hi,

You can include both sending and recieving of audio in one application.

Also, you can choose any data trabsfer protocol, which matches better with your target.

Reducing BufferLength and increasing BufferCount produces less delay on the client side.

Cheers

_________________
Kambiz
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Magno
Member


Joined: 31 Aug 2005
Posts: 5

PostPosted: 01/09/05 12:52    Post subject: Reply with quote

Hi Kambiz, thank you for helping Smile

Well, I actually did it, but now seems something stranger, I get a echo effect and the sample rate that is reproduced in one side look likes out of format, the voice is accelarated Laughing hehehehe... any clue?

What could be the best techinique:

1. use 2 TCP TSocket, one TClient and other TServer, wasting 2 socket ports
2. use the concept of client server with only one TServer in a side application and a TClient in the client application and send all the audio via only one socket port

Cheers!
Back to top
View user's profile Send private message
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 1044
Location: Tehran, Iran

PostPosted: 01/09/05 14:40    Post subject: Reply with quote

For sure, you have to filter recorded data by an echo cancellation algorithm in both parties.

Don't worry about taking two ports. Smile

_________________
Kambiz
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Magno
Member


Joined: 31 Aug 2005
Posts: 5

PostPosted: 01/09/05 17:07    Post subject: Reply with quote

Hi again.

I modified the code, now using only one socket port but there's something wrong... when I connect I start to listen a high noise, like a non tunned radio, a hiss. The code envolved a lot of modifications due I am using only one TCP componet for each side. What could cause that hiss sound?

All these communicatiors uses such filters Kambiz? as Skype, ie.?
Back to top
View user's profile Send private message
Magno
Member


Joined: 31 Aug 2005
Posts: 5

PostPosted: 02/09/05 19:53    Post subject: Reply with quote

Well, for some reason I simply can use one tcp socket Sad

Has 2 applications, one with TSocketClient and other with TSocketServer, in both application the TLiveAudioPlayer and TLiveAudioRecorder. On the client application i can receive the sound, in the server i cannot. The problem is because for some reason, after receive (in the server side) the Audio Format header it dont call the OnFormat().

Something suggests me the problem could be in the Data := self, i tried a lot of things but not working. Right now the applications dont handshake the 'READY' string, so after the client call the server it sends his audio format in the ClientAccept, just as the demo, and after it sets the Socket.Data := self.

I really dont know the components is able to work using only one Socket port.

Please, any clue? Crying or Very sad
Back to top
View user's profile Send private message
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 1044
Location: Tehran, Iran

PostPosted: 03/09/05 06:52    Post subject: Reply with quote

I'm sorry, but I can't help. I don't know so much about sockets.
_________________
Kambiz
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    DELPHI AREA Forum Index -> DELPHI AREA's Products All times are GMT
Page 1 of 1

Add to favorites

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group