• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Memory allocation?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Memory allocation?


  • Subject: Re: Memory allocation?
  • From: Urs Heckmann <email@hidden>
  • Date: Mon, 20 Oct 2003 15:24:27 +0200

Am Montag, 20.10.03, um 15:29 Uhr (Europe/Berlin) schrieb Marc Poirier:

Im not sure how to allocate memory for what i need.


float waveformSamples[32][512];

is this to big?

That's 64 MB. Which is pretty big, but I guess not "too" big by today's
standards. But definitely not something that you would want to just
allocate like that when declared, it will make your binary take a long
time to load, so doing it dynamically (as below) would be much preferred.

Wow... Marc, pretty impressive... since when is sizeof( float ) = 4096?!?

8-))

It's in fact only 64k, so probably no problem to do it the other way round...

I have my wavetables pre-rendered to

const float myWave[] = { 0.0f, 0.0000123f, 0.00000234f, ..... , 0.0030405f }; // many many values here

Cheers,

;) Urs
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Memory allocation?
      • From: Marc Poirier <email@hidden>
  • Prev by Date: RE: Cubase SX != AU
  • Next by Date: Re: Memory allocation?
  • Previous by thread: Re: Memory allocation?
  • Next by thread: Re: Memory allocation?
  • Index(es):
    • Date
    • Thread