🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: VoIP implementation

#179
From: Jonathan Benedicto
Date: Mon, 30 Jun 2008 16:23
21 lines
2038 bytes
Carl Danley wrote:
> Is there a way to declare how big the packets are before they are sent?

Not really, because to limit the size of each packet you send, just send a 
few (<1000) bytes at a time.

> Also, I can code the majority of this, but the only thing i dont know how 
> to do is send the file over the socket and open a stream to be recorded 
> to... Any Ideas? Here is some coding that I would use for everything else:

You won't be sending a file, you'll most likely want to send a compressed 
audio stream as fast as it comes from the sound card.

> I know that might be alot of potential coding, but I sure could use the 
> help. Would it be possible to use the TMediaPlayer component to record to 
> a stream and then send? or would I use an MCI Media Player?

You'll probably want to use the waveIn API functions, or possibly DirectShow 
or a 3rd party component to get the audio stream.

Jon 
Technical Details
Message-ID: <486908a0$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mail
References: <4868387c@newsgroups.borland.com> <48683aa5$1@newsgroups.borland.com> <4868458f$1@newsgroups.borland.com> <48684d77$1@newsgroups.borland.com> <4868f8e6$1@newsgroups.borland.com> <4868f9cc$1@newsgroups.borland.com> <48690105$1@newsgroups.borland.com> <48690725$1@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
From: "Jonathan Benedicto" <invalid@nobody.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <4868387c@newsgroups.borland.com> <48683aa5$1@newsgroups.borland.com> <4868458f$1@newsgroups.borland.com> <48684d77$1@newsgroups.borland.com> <4868f8e6$1@newsgroups.borland.com> <4868f9cc$1@newsgroups.borland.com> <48690105$1@newsgroups.borland.com> <48690725$1@newsgroups.borland.com>
Subject: Re: VoIP implementation
Date: Mon, 30 Jun 2008 12:23:56 -0400
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 99.239.5.20
Message-ID: <486908a0$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1214843040 99.239.5.20 (30 Jun 2008 09:24:00 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mail