Re: Wavpack recording.

2006-02-12 Thread Thom Johansen
gl wrote: IDATA_ATTR is for data that is initialised. Then you have IBSS_ATTR for data which is uninitialised, and ICONST_ATTR for constant data (lookup tables and the like). Thanks, is this type of stuff documented anywhere? There's not much more to it, and no, no docs AFAIK. This level o

Re: Wavpack recording.

2006-02-12 Thread gl
If we used malloc(), we'd need to keep this amount of memory free in case it would be needed anyway, so it's just as wasteful as using malloc. Good point, except of course it's wasteful to permanently allocate memory that is only used in a particular mode (eg. recording). But I guess it avo

Re: Wavpack recording.

2006-02-12 Thread Thom Johansen
gl wrote: We don't use malloc and free in Rockbox. Allocate whatever memory you need with static buffers. Those two buffer sizes are unknown at compile time: one I can talk to David about, the other because I was anticipating packing to various formats, eg. 8bit. I guess I could statically

Re: Wavpack recording.

2006-02-12 Thread gl
We don't use malloc and free in Rockbox. Allocate whatever memory you need with static buffers. Those two buffer sizes are unknown at compile time: one I can talk to David about, the other because I was anticipating packing to various formats, eg. 8bit. I guess I could statically allocate the

Re: Wavpack recording.

2006-02-12 Thread gl
Have you looked at this patch? http://sourceforge.net/tracker/index.php?func=detail&atid=439120&group_id=44306&aid=1412272 No, didn't think this had been done yet. Thanks. -- gl

Re: Wavpack recording.

2006-02-12 Thread Thom Johansen
gl wrote: I have the Wavpack record code written (for now hard-coded into pcm_record.c). I can't get it to compile though. For one, malloc and free (which I use to allocate the block buffers) don't resolve. I read the basic RB framework primer on the site about the seperation of firmware

Re: Wavpack recording.

2006-02-12 Thread Dave Chapman
gl wrote: > I have the Wavpack record code written (for now hard-coded into > pcm_record.c). I can't get it to compile though. Have you looked at this patch? http://sourceforge.net/tracker/index.php?func=detail&atid=439120&group_id=44306&aid=1412272 Dave.

Wavpack recording.

2006-02-12 Thread gl
David, these were missing from Wavpack.h: void WavpackUpdateNumSamples (WavpackContext *wpc, void *first_block); void *WavpackGetWrapperLocation (void *first_block); I have the Wavpack record code written (for now hard-coded into pcm_record.c). I can't get it to compile though. For on