🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: memory fragmentation

#140
From: Jonathan Benedicto
Date: Mon, 16 May 2005 11:53
19 lines
1748 bytes
"Mark Jacobs" <http://www.jacobsm.com/mjmsg.htm?mj@critical> wrote in 
message news:428861c0@newsgroups.borland.com...
>
> I suspect this is what is causing your clicks. I statically allocate 
> everything on the heap, by defining vast 10 MByte structures like 
> this :-

Actually, if I do create a new buffer every time I need it, then the 
clicks disappear. It's just when I re-use one of those buffers that 
they come.

> Also, are you using the correct lengths?  If you are using OGG 
> format, every 1/4 second buffer will be a different length to the 
> next. The member wvhd[nxtbf].dwBufferLength must be set correctly 
> each time.

I set the dwBufferLength every time I fill the buffer.

Jonathan 
Technical Details
Message-ID: <4288899b@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42851140$1@newsgroups.borland.com> <428861c0@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>
Subject: Re: memory fragmentation
Date: Mon, 16 May 2005 07:53:00 -0400
Lines: 21
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: <4288899b@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1116244379 64.231.16.168 (16 May 2005 04:52:59 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail