summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2009-07-06 03:11:23 +0200
committerGravatar waker <wakeroid@gmail.com>2009-07-06 03:11:23 +0200
commit0a7025537a8c0fe07e26f947740bcf1a1ab91f9b (patch)
tree2471d771f058d3780d6c78479114c93a6c5d0824
parentd05d431ebad5767f3afa9b6c76639e83233e2d9c (diff)
44100Hz is now default
-rw-r--r--Jamfile4
-rw-r--r--main.c2
-rw-r--r--psdl.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/Jamfile b/Jamfile
index d6b2be77..c0a32985 100644
--- a/Jamfile
+++ b/Jamfile
@@ -2,8 +2,8 @@ SubDir ROOT ;
CCFLAGS += -D_GNU_SOURCE ;
CCFLAGS += -std=c99 ;
# CCFLAGS += -D_REENTRANT ;
-OPTIM += -O0 ;
-OPTIM += -g ;
+OPTIM += -O2 ;
+#OPTIM += -g ;
HDRS += /usr/include/gtk-2.0 ;
HDRS += /usr/lib/gtk-2.0/include ;
diff --git a/main.c b/main.c
index 985da9f1..d95fffd4 100644
--- a/main.c
+++ b/main.c
@@ -74,7 +74,7 @@ psdl_thread (uintptr_t ctx) {
break;
}
}
- usleep(10);
+ usleep(1000);
// handle message pump here
}
psdl_free ();
diff --git a/psdl.c b/psdl.c
index 3bba6916..9e4388f5 100644
--- a/psdl.c
+++ b/psdl.c
@@ -26,7 +26,7 @@ int
psdl_init (void) {
SDL_AudioSpec obt;
int formats[] = { AUDIO_S16, -1 };
- int freqs[] = { 48000, 44100, -1 };
+ int freqs[] = { 44100, 48000, -1 };
const char *fmtnames[] = { "16 bit signed integer" };
int fmt, frq;
int success = 0;