🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #6194

Re: Truncate wave files when recording

#6194
From: nicolasr
Date: Wed, 01 Jun 2005 23:11
19 lines
1753 bytes
thanks Bob for the reply. I tried your second suggestion first
and it works well. I have to make a copy of the file before
recreating it, though. But this is a way to go. It also has the
advantage that other parts of the code can work with the copy
while a new file is recorded.

thanks,
Nick

>>I don't want to delete and recreate the temp file at the time the record
>>button is pressed. This would provide an anacceptable delay.
>
> SetFilePointer( handle, 0, NULL, FILE_BEGIN );
> SetEndOfFile( handle );
> or
>
> Close the file and open a new one when recording stops.
>
> 
Technical Details
Message-ID: <429e40af$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed.bit.nl!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <429dbe5d$1@newsgroups.borland.com> <46rr91piit2jac2lahiq3bmp2jd63ctdal@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e7feb4d34e558a21
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "nicolasr" <nicolasrNOSPAMATSIGNgmx.net>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <429dbe5d$1@newsgroups.borland.com> <46rr91piit2jac2lahiq3bmp2jd63ctdal@4ax.com>
Subject: Re: Truncate wave files when recording
Date: Thu, 2 Jun 2005 01:11:39 +0200
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 84.174.132.22
Message-ID: <429e40af$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1117667503 84.174.132.22 (1 Jun 2005 16:11:43 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed.bit.nl!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail