diff options
author | Dan Everton <dan@iocaine.org> | 2006-02-21 21:48:06 +0000 |
---|---|---|
committer | Dan Everton <dan@iocaine.org> | 2006-02-21 21:48:06 +0000 |
commit | 394521881072eb49b29352f479a8f17ee403fbd6 (patch) | |
tree | 90669c700d75f539b994e2c4c6fbc862ff563119 /uisimulator/sdl/uisdl.c | |
parent | 8850c61ee1270b670533ea0810a73ce9a5b30c86 (diff) | |
download | rockbox-394521881072eb49b29352f479a8f17ee403fbd6.tar.gz rockbox-394521881072eb49b29352f479a8f17ee403fbd6.zip |
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
Diffstat (limited to 'uisimulator/sdl/uisdl.c')
-rw-r--r-- | uisimulator/sdl/uisdl.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/uisimulator/sdl/uisdl.c b/uisimulator/sdl/uisdl.c index 1e36bfa223..3d802ba4de 100644 --- a/uisimulator/sdl/uisdl.c +++ b/uisimulator/sdl/uisdl.c @@ -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"); |