Simulators: Made the mp3 buffer size depend on the MEMORYSIZE setting for better simulation.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5922 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2005-02-11 23:56:38 +00:00
parent 83db7615da
commit b4527a3421
3 changed files with 3 additions and 3 deletions

View file

@ -20,7 +20,7 @@
#include "buffer.h"
#ifdef SIMULATOR
unsigned char mp3buffer[0x200000];
unsigned char mp3buffer[(MEM*1024-256)*1024];
unsigned char *mp3end = mp3buffer + sizeof(mp3buffer);
#else
/* defined in linker script */

View file

@ -57,7 +57,7 @@ no_configure:
endif
DEFINES = -DHAVE_CONFIG_H -DGETTIMEOFDAY_TWO_ARGS -DSIMULATOR \
$(TARGET) -DAPPSVERSION=\"$(VERSION)\" $(EXTRA_DEFINES)
$(TARGET) -DAPPSVERSION=\"$(VERSION)\" -DMEM=${MEMORYSIZE} $(EXTRA_DEFINES)
LDFLAGS = -lgdi32 -luser32

View file

@ -53,7 +53,7 @@ no_configure:
endif
DEFINES := -DHAVE_CONFIG_H -DGETTIMEOFDAY_TWO_ARGS -DSIMULATOR \
$(TARGET) -DAPPSVERSION=\"$(VERSION)\" $(EXTRA_DEFINES)
$(TARGET) -DAPPSVERSION=\"$(VERSION)\" -DMEM=${MEMORYSIZE} $(EXTRA_DEFINES)
# Use this for simulator-only files
INCLUDES = -I. -I$(EXPORT) -I$(APPSDIR) -I$(MACHINEDIR) -I$(SIMCOMMON) -I$(OBJDIR) -I$(PLUGINDIR)/lib