🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.multimedia
Article #860

Re: Record is choppy, multiple/single buffer problem

#860
From: Maynard Philbrook
Date: Mon, 03 Mar 2003 06:39
31 lines
2257 bytes
you load the buffer.
then prepare it
then send it.
then do the same for the next..
you prepare one at a time and then send it, repeat this until your buffers
run out then return from the code and let the call back respond to
buffers being returned.
 you can either call the same code again at that point or send a custom
message to your app from the call back..
 P.S.
   you do not want to do hardly any API calls in the callback if the callback
is not Message events.
  you can only use things like PostMessage, Timer functions ect..


Tim Reago wrote:

> Part of my program records audio using <mmsystem.h> functions,
> waveInPrepareHeader and such.
>
> The client record works and allows my other threads to continue functioning
> when I prepare only one buffer.
>
> However, when I prepare two or more buffers, I loose all other thread
> functionality on the client.  I think???  Or something like that.
>
> And when I record with only one buffer, I get a choppy break between each
> recorded buffer.  So that is no good.
>
> Thanks,
> Tim
Technical Details
Message-ID: <3E62F899.C550AB6@mindspring.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed-west.nntpserver.com!hub1.meganetnews.com!nntpserver.com!beamish.news.atl.earthlink.net!guinness.news.atl.earthlink.net!news.atl.earthlink.net!stamper.news.atl.earthlink.net!harp.news.atl.earthlink.net!not-for-mail
References: <3e622676@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d0fc,734042f93aa0ac3
X-Google-Attributes: gid10d0fc,public
X-Google-ArrivalTime: 2003-03-02 22:41:40 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed-west.nntpserver.com!hub1.meganetnews.com!nntpserver.com!beamish.news.atl.earthlink.net!guinness.news.atl.earthlink.net!news.atl.earthlink.net!stamper.news.atl.earthlink.net!harp.news.atl.earthlink.net!not-for-mail
From: Maynard Philbrook <jamie12mindspring.com@mindspring.com>
Newsgroups: borland.public.cppbuilder.multimedia
Subject: Re: Record is choppy, multiple/single buffer problem
Date: Mon, 03 Mar 2003 01:39:21 -0500
Organization: MindSpring Enterprises
Lines: 32
Message-ID: <3E62F899.C550AB6@mindspring.com>
References: <3e622676@newsgroups.borland.com>
Reply-To: jamie12mindspring.com@mindspring.com
NNTP-Posting-Host: 44.76.b2.0c
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Server-Date: 3 Mar 2003 06:41:33 GMT
X-Mailer: Mozilla 4.5 [en]C-CCK-MCD {TLC;RETAIL}  (Win98; U)
X-Accept-Language: en