summaryrefslogtreecommitdiff
path: root/apps/plugins/xworld/resource.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/xworld/resource.c')
-rw-r--r--apps/plugins/xworld/resource.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/apps/plugins/xworld/resource.c b/apps/plugins/xworld/resource.c
index 2820dcb..4bd93f0 100644
--- a/apps/plugins/xworld/resource.c
+++ b/apps/plugins/xworld/resource.c
@@ -354,12 +354,14 @@ void res_allocMemBlock(struct Resource* res) {
rb->audio_stop();
/* steal the audio buffer */
size_t sz;
- /* memory usage is as follows:
- [VM memory - 600K]
- [Framebuffers - 128K]
- [Temporary framebuffer - 192K]
- [String table buffer]
- */
+ /* memory usage is first statically allocated, then the remainder is used dynamically:
+ * static:
+ * [VM memory - 600K]
+ * [Framebuffers - 128K]
+ * [Temporary framebuffer - 192K]
+ * dynamic:
+ * [String table buffer]
+ */
res->_memPtrStart = rb->plugin_get_audio_buffer(&sz);
if(sz < MEM_BLOCK_SIZE + (4 * VID_PAGE_SIZE) + 320 * 200 * sizeof(fb_data))
{