Article View: borland.public.cppbuilder.multimedia
Article #154Re: memory fragmentation
From: Jonathan Benedicto
Date: Tue, 17 May 2005 17:11
Date: Tue, 17 May 2005 17:11
23 lines
1969 bytes
1969 bytes
"Mark Jacobs" <http://www.jacobsm.com/mjmsg.htm?mj@critical> wrote in message news:4289ab9f@newsgroups.borland.com... > > From what you have said so far, it looks like one of the entities in > the wave header is not being set correctly, and I suspect it's the > dwLoops member. I set dwLoops, dwBufferLength and lpData, every 1/4 > second (buffer-full). This is what I use :- Thank you for continuing to provide ideas. I think that you may be right, because yesterday I tried a last resort: char *TempBufferPtr = WaveHeader->lpData; ZeroMemory(TempBufferPtr, 8192); ZeroMemory(WaveHeader, sizeof(WAVEHDR)); WaveHeader->lpData = TempBufferPtr; And it seems that the clicks are just about silenced. I can still hear them when I turn the speakers up, but that could be my sound card, speakers or mike. So I'm going to leave it at this. Thank you again for your help. Jonathan
Technical Details
Message-ID:
<428a25b2$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<42851140$1@newsgroups.borland.com> <428861c0@newsgroups.borland.com> <4288899b@newsgroups.borland.com> <4288c053@newsgroups.borland.com> <4288c29f@newsgroups.borland.com> <4289ab9f@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10d0fc,6e41daf58c14cc3a X-Google-Attributes: gid10d0fc,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Jonathan Benedicto" <incorrect@no.server> Newsgroups: borland.public.cppbuilder.multimedia References: <42851140$1@newsgroups.borland.com> <428861c0@newsgroups.borland.com> <4288899b@newsgroups.borland.com> <4288c053@newsgroups.borland.com> <4288c29f@newsgroups.borland.com> <4289ab9f@newsgroups.borland.com> Subject: Re: memory fragmentation Date: Tue, 17 May 2005 13:11:15 -0400 Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 64.231.16.168 Message-ID: <428a25b2$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1116349874 64.231.16.168 (17 May 2005 10:11:14 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail