1
0
Fork 0
forked from len0rd/rockbox

Proper working sound in the SDL sim. Add option to write raw audio to a file, use --debugaudio command line option.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8770 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dan Everton 2006-02-21 21:48:06 +00:00
parent 8850c61ee1
commit 3945218810
2 changed files with 55 additions and 23 deletions

View file

@ -51,7 +51,9 @@ SDL_Thread *gui_thread;
SDL_TimerID tick_timer_id;
bool lcd_display_redraw = true; /* Used for player simulator */
char having_new_lcd=true; /* Used for player simulator */
char having_new_lcd = true; /* Used for player simulator */
bool debug_audio = false;
long start_tick;
@ -190,7 +192,10 @@ int main(int argc, char *argv[])
if (argc >= 1) {
int x;
for (x = 1; x < argc; x++) {
if (!strcmp("--background", argv[x])) {
if (!strcmp("--debugaudio", argv[x])) {
debug_audio = true;
printf("Writing debug audio file.\n");
} else if (!strcmp("--background", argv[x])) {
background = true;
printf("Using background image.\n");
} else if (!strcmp("--old_lcd", argv[x])) {
@ -203,6 +208,7 @@ int main(int argc, char *argv[])
} else {
printf("rockboxui\n");
printf("Arguments:\n");
printf(" --debugaudio \t Write raw PCM data to audiodebug.raw\n");
printf(" --background \t Use background image of hardware\n");
printf(" --old_lcd \t [Player] simulate old playermodel (ROM version<4.51)\n");
printf(" --zoom \t window zoom (will disable backgrounds)\n");