Article View: borland.public.cppbuilder.multimedia
Article #1256Re: Skipping when recording
From: Michael Warner
Date: Mon, 16 Apr 2001 15:07
Date: Mon, 16 Apr 2001 15:07
20 lines
1763 bytes
1763 bytes
On Mon, 16 Apr 2001 10:43:47 +0200, Mike <ppagee@yahoo.com> wrote: >How can I record with waveIn without skipping (now I record to buffer, >than, when all data arrives, save to disk, and again start recording, >but >I lost a little of sound)? As with playing, you need to use double-buffering so that when one buffer becomes full the other begins to fill while you process the first one. The procedure works like this: - Queue buffer A - Queue buffer B - Start recording - A fills: process data in A and requeue it - B fills: process data in B and requeue it - A fills: etc. You never leave the device without a queued buffer to place data into. Size the buffers so that each holds a second or so of data.
Technical Details
Message-ID:
<he2mdtodna9edmhljtq94rjb32ud7mddvt@4ax.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!feeds.vnews.net!ptdnetP!newsgate.ptd.net!news.maxwell.syr.edu!newsfeed.icl.net!news.tele.dk!195.158.233.21!news1.ebone.net!news.ebone.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3ADAB0C3.35E942DC@yahoo.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d0fc,8f6cee593340e8a4 X-Google-Attributes: gid10d0fc,public X-Google-ArrivalTime: 2001-04-16 08:28:04 PST From: Michael Warner <mvw@ozemail.com.au> Newsgroups: borland.public.cppbuilder.multimedia Subject: Re: Skipping when recording Date: Tue, 17 Apr 2001 00:37:15 +0930 Organization: Warner Solutions Reply-To: mvw@ozemail.com.au Message-ID: <he2mdtodna9edmhljtq94rjb32ud7mddvt@4ax.com> References: <3ADAB0C3.35E942DC@yahoo.com> X-Newsreader: Forte Agent 1.8/32.548 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 203.29.136.45 X-Trace: dnews 987433544 203.29.136.45 (16 Apr 2001 08:05:44 -0700) Lines: 20 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!feeds.vnews.net!ptdnetP!newsgate.ptd.net!news.maxwell.syr.edu!newsfeed.icl.net!news.tele.dk!195.158.233.21!news1.ebone.net!news.ebone.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews