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; | |||
51 | SDL_TimerID tick_timer_id; | 51 | SDL_TimerID tick_timer_id; |
52 | 52 | ||
53 | bool lcd_display_redraw = true; /* Used for player simulator */ | 53 | bool lcd_display_redraw = true; /* Used for player simulator */ |
54 | char having_new_lcd=true; /* Used for player simulator */ | 54 | char having_new_lcd = true; /* Used for player simulator */ |
55 | |||
56 | bool debug_audio = false; | ||
55 | 57 | ||
56 | long start_tick; | 58 | long start_tick; |
57 | 59 | ||
@@ -190,7 +192,10 @@ int main(int argc, char *argv[]) | |||
190 | if (argc >= 1) { | 192 | if (argc >= 1) { |
191 | int x; | 193 | int x; |
192 | for (x = 1; x < argc; x++) { | 194 | for (x = 1; x < argc; x++) { |
193 | if (!strcmp("--background", argv[x])) { | 195 | if (!strcmp("--debugaudio", argv[x])) { |
196 | debug_audio = true; | ||
197 | printf("Writing debug audio file.\n"); | ||
198 | } else if (!strcmp("--background", argv[x])) { | ||
194 | background = true; | 199 | background = true; |
195 | printf("Using background image.\n"); | 200 | printf("Using background image.\n"); |
196 | } else if (!strcmp("--old_lcd", argv[x])) { | 201 | } else if (!strcmp("--old_lcd", argv[x])) { |
@@ -203,6 +208,7 @@ int main(int argc, char *argv[]) | |||
203 | } else { | 208 | } else { |
204 | printf("rockboxui\n"); | 209 | printf("rockboxui\n"); |
205 | printf("Arguments:\n"); | 210 | printf("Arguments:\n"); |
211 | printf(" --debugaudio \t Write raw PCM data to audiodebug.raw\n"); | ||
206 | printf(" --background \t Use background image of hardware\n"); | 212 | printf(" --background \t Use background image of hardware\n"); |
207 | printf(" --old_lcd \t [Player] simulate old playermodel (ROM version<4.51)\n"); | 213 | printf(" --old_lcd \t [Player] simulate old playermodel (ROM version<4.51)\n"); |
208 | printf(" --zoom \t window zoom (will disable backgrounds)\n"); | 214 | printf(" --zoom \t window zoom (will disable backgrounds)\n"); |