dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Let's build a memory map

Let's build a memory map

From: Steve Bavin <>
Date: Wed, 16 Aug 2006 18:55:38 +0100


This is a call to all developers who know and understand playback.c. ;-)

Can somebody produce, or point me in the direction of, a basic memory map
showing how the audio buffer is used on SWCODEC targets.

I have a rough, and very probably incorrect outline:

--- audiobuf (initially)
tagcache (optional, size varies)
dircache (optional, size varies)
voice thumbnail buffer (optional, size MAX_THUMBNAIL_BUFSIZE)
voice file (optional, size of voice file)
---- audiobuf (after initialisation)
codec malloc buffer (size MALLOC_BUFSIZE)
---- filebuf
PCM buffers, including guard buffers/descriptors
--- filebuf + filebuflen
audio codec IRAM (size CODEC_IRAM_SIZE)
voice codec IRAM (optional, size CODEC_IRAM_SIZE)
audio code DRAM (size CODEC_SIZE)
voice codec DRAM (optional, size CODEC_SIZE)
--- audiobufend
I intend to put this in the wiki if this information doesn't already exist
in there (and if it does, I can't find it!)
Steve Bavin
Received on 2006-08-16

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy