diff options
author | taw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5> | 2008-06-29 16:15:48 +0000 |
---|---|---|
committer | taw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5> | 2008-06-29 16:15:48 +0000 |
commit | 6900aeb414c3f26b5bd51c90e0f700f7bf138d2a (patch) | |
tree | 45ffa300065b3221dcbcbb5e8544e6712683198d /src/main.c | |
parent | 52fc29e109b087342abe432b6ffa563d7172d6e7 (diff) |
Command-line option for audio debugging
Make clipping sound a little less horrendous (still pretty bad)
Count number of clipped samples
git-svn-id: svn://cook.msm.cam.ac.uk:745/thrust3d/thrust3d@114 84d2e878-0bd5-11dd-ad15-13eda11d74c5
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -55,6 +55,7 @@ int main(int argc, char *argv[]) { int disable_vbos = 0; int disable_fbos = 0; int disable_shaders = 0; + int audio_debug = 0; const struct option longopts[] = { {"fullscreen", 0, NULL, 'f'}, {"resolution", 1, NULL, 'r'}, {"help", 0, NULL, 'h'}, @@ -62,6 +63,7 @@ int main(int argc, char *argv[]) { {"disable-vbos", 0, &disable_vbos, 1}, {"disable-fbos", 0, &disable_fbos, 1}, {"disable-shaders", 0, &disable_shaders, 1}, + {"audio-debug", 0, &audio_debug, 1}, {0, 0, NULL, 0} }; @@ -107,6 +109,7 @@ int main(int argc, char *argv[]) { printf(" --disable-vbos Disable the use of vertex buffer objects (advanced).\n"); printf(" --disable-fbos Disable the use of framebuffer objects (advanced).\n"); printf(" --disable-shaders Disable the use of shaders (advanced).\n"); + printf(" --audio-debug Print audio debugging messages to stdout (advanced).\n"); printf(" -f, --fullscreen Use the full screen.\n\n"); printf("Allowable values for <res> are as follows:\n\n"); printf("<res> Width Height\n"); @@ -164,7 +167,7 @@ int main(int argc, char *argv[]) { /* World setup */ Game *game; - game = game_new(width, height, disable_vbos, disable_fbos, disable_shaders); + game = game_new(width, height, disable_vbos, disable_fbos, disable_shaders, audio_debug); /* Main loop */ finished = 0; |