I couldn't resist: izeof(synth_buffs) = sizeof(float)*2*2*0x120 = 4 * 4 * 0x120 = 0x1200 4608 -Anish> -----Original Message----- > From: Segher Boessenkool [mailto:segher@chello.nl] > Sent: Monday, July 02, 2001 6:34 PM > To: vorbis-dev@xiph.org > Subject: Re: [vorbis-dev] ogg vorbis dynamic memory allocation. > > > > > Firelight Multimedia wrote: > > > > > > > That's 40.5k (roughly), for these buffers only... So my 48k > > stands. > > > > > But anyway, 48k or 880k doesn't compare very nice for us... > > > > > > > > well 2816+9216+4608+9216+4608+4608 = 34.25k actually :) > > > > > > ...except your math is kind of funky? > > > > Sigh so 2816 was meant to be 4608 equalling 36k... so how > funky is your > > maths if you got 40.5k > > > > #define SBLIMIT 32 > > > #define SSLIMIT 18 > > > #define MAXFRAMESIZE 1792 > 4608 > > unsigned char bsspace[2][MAXFRAMESIZE+512]; > 9216 > > float hybrid_block[2][2][SBLIMIT*SSLIMIT]; > 9216 > > float synth_buffs[2][2][0x120]; > 9216 > > float block[2][2][SBLIMIT * SSLIMIT]; > 4608 > > float hybridIn[2][SBLIMIT][SSLIMIT]; > 4608 > > float hybridOut[2][SSLIMIT][SBLIMIT]; > ----- + > 41472 = 40.5k > > convinced now? > > > Segher > > --- >8 ---- > List archives: http://www.xiph.org/archives/ > Ogg project homepage: http://www.xiph.org/ogg/ > To unsubscribe from this list, send a message to > 'vorbis-dev-request@xiph.org' > containing only the word 'unsubscribe' in the body. No > subject is needed. > Unsubscribe messages sent to the list will be ignored/filtered. >--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Segher Boessenkool
2001-Jul-02 18:45 UTC
[vorbis-dev] ogg vorbis dynamic memory allocation.
"Dave, Anish" wrote:> > I couldn't resist: > > sizeof(synth_buffs) = sizeof(float)*2*2*0x120 = 4 * 4 * 0x120 = 0x1200 > 4608Oh shit. Oops. My apologies to everyone involved ;-) Segher --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.