chiark
/
gitweb
/
~mdw
/
jog
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8284b00
)
Remove bogus debugging. Reduce output buffer size for faster response.
author
mdw
<mdw>
Sat, 2 Feb 2002 22:43:17 +0000
(22:43 +0000)
committer
mdw
<mdw>
Sat, 2 Feb 2002 22:43:17 +0000
(22:43 +0000)
ausys-sdl.c
patch
|
blob
|
blame
|
history
diff --git
a/ausys-sdl.c
b/ausys-sdl.c
index c54d378dd228d18cb18fb929cba2b7ff6008c716..d4d6dcf95b05adb954e399b7f4c096bf61b1aee4 100644
(file)
--- a/
ausys-sdl.c
+++ b/
ausys-sdl.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: ausys-sdl.c,v 1.
1 2002/02/02 19:16:28
mdw Exp $
+ * $Id: ausys-sdl.c,v 1.
2 2002/02/02 22:43:17
mdw Exp $
*
* Unix-specific (SDL) audio handling
*
*
* Unix-specific (SDL) audio handling
*
@@
-29,6
+29,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: ausys-sdl.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: ausys-sdl.c,v $
+ * Revision 1.2 2002/02/02 22:43:17 mdw
+ * Remove bogus debugging. Reduce output buffer size for faster response.
+ *
* Revision 1.1 2002/02/02 19:16:28 mdw
* New audio subsystem.
*
* Revision 1.1 2002/02/02 19:16:28 mdw
* New audio subsystem.
*
@@
-148,7
+151,7
@@
static void fill(void *u, octet *q, int qsz)
}
/* --- Fill the buffer with my sample --- */
}
/* --- Fill the buffer with my sample --- */
-exit(0);
+
n = qsz;
if (n > sz)
n = sz;
n = qsz;
if (n > sz)
n = sz;
@@
-269,7
+272,7
@@
void ausys_init(void)
want.freq = 8000;
want.format = AUDIO_U8;
want.channels = 1;
want.freq = 8000;
want.format = AUDIO_U8;
want.channels = 1;
- want.samples =
4096
;
+ want.samples =
1024
;
want.callback = fill;
want.userdata = 0;
want.callback = fill;
want.userdata = 0;