🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #187

Re: VoIP implementation

#187
From: DreamChaser
Date: Thu, 03 Jul 2008 03:54
51 lines
3365 bytes
(After reading other posts)

Just a few thoughts OTTH to maybe help out:

For help with the waveXX() functions check out the Multimedia help files 
in the for the SDK that come with Builder.

I have been looking at trying to do some audio stuff myself and seem to 
remember that recording involves a couple of input buffers (one filling, 
one saving). In playing back an audio file that can't fit into memory 
you would use enough buffers to hold about 2 seconds of audio. Fill one 
up start playing it, fill the rest, wait for 1 to finish playing, start 
2, fill 1 with more stuff, rise & repeat...:)

As I was reading the other posts, I was thinking that if one were to 
place the ->SendBuf() transfer in the between the record/fill and the 
fill/play operations of the standard record/play process and increased 
the amount of buffer to 3~4 secs. You would wind up sending continuously 
from the mic side to the play side, but it might work.

There used to be a site that had some good information 
(www.borg.com/~jglatt/tech/lowaud.htm) but I just checked and the site 
is gone now :(  Doing a search came up with some code:
(VB) 
http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=65662&lngWId=1

Another post said, "For samples on how to record audio with waveIn, 
there are plenty on codeguru.com."

And one more thought the MTU on my firewall is 1500 (bytes), so the size 
of your data buffers should take that into account.

DC


Carl Danley wrote:
> Alright... So, I've been reading a book for VoIP and have been wondering 
> whether or not I should even bother trying to implement a feature like 
> this into a program of mine... I was wondering if anyone on here would 
> be willing to work with me to help with creating some sample code so I 
> can understand the process in this language... I am decently experienced 
> with Codegear RAD Studio (C++) and write applications on a daily 
> basis... My understandings are that this isnt an easy task, but im tired 
> of hearing that and I want to learn this so that I can implement this 
> type of feature into a multitude of different applications. If you have 
> any ideas as to where I could get started or have some spare time to 
> write some sample coding, I would absolutely appreciate it! I have 
> posted on several different forums over the past year and no one has 
> helped at all.. Thank you again for your time!
> 
> Also, if you have any questions, please ask!
Technical Details
Message-ID: <486c4d66$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!news.isoc.lu!newsgroups.borland.com!not-for-mail
References: <4868387c@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,be62032270e223aa
X-Google-Attributes: gid11508e,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Wed, 02 Jul 2008 22:54:15 -0500
From: DreamChaser <NO-Spam@No-Span.net>
User-Agent: Thunderbird 2.0.0.14 (Windows/20080421)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: VoIP implementation
References: <4868387c@newsgroups.borland.com>
In-Reply-To: <4868387c@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 65.6.192.60
Message-ID: <486c4d66$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1215057254 65.6.192.60 (2 Jul 2008 20:54:14 -0700)
Lines: 51
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!news.isoc.lu!newsgroups.borland.com!not-for-mail